Skip to content

Commit 7572aa8

Browse files
committed
meson: use name arg so check result is reported
1 parent 6e2afb1 commit 7572aa8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

meson.build

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,16 @@ if cc.compiles('
277277
struct timespec now;
278278
return 0;
279279
}
280-
')
281-
# TODO: message?
280+
', name : '-Werror=shadow with local shadowing')
282281
add_project_arguments('-Werror=shadow', language : 'c')
283282
endif
284283

285284
if cc.get_id() == 'clang'
286285
foreach arg : ['-Wno-typedef-redefinition',
287286
'-Wno-gnu-variable-sized-type-not-at-end',
288287
]
289-
if cc.has_argument(arg)
288+
if cc.has_argument(arg,
289+
name : '@0@ is supported'.format(arg))
290290
add_project_arguments(arg, language : 'c')
291291
endif
292292
endforeach
@@ -314,7 +314,8 @@ endforeach
314314
if get_option('buildtype') != 'debug'
315315
foreach arg : ['-ffunction-sections',
316316
'-fdata-sections']
317-
if cc.has_argument(arg)
317+
if cc.has_argument(arg,
318+
name : '@0@ is supported'.format(arg))
318319
add_project_arguments(arg, language : 'c')
319320
endif
320321
endforeach
@@ -553,7 +554,7 @@ endif
553554
system_uid_max = system_uid_max.to_int()
554555
conf.set('SYSTEM_UID_MAX', system_uid_max)
555556
substs.set('systemuidmax', system_uid_max)
556-
message('Maximum system UID is @0@'.format(system_uid_max))
557+
message('maximum system UID is @0@'.format(system_uid_max))
557558

558559
conf.set_quoted('NOBODY_USER_NAME', get_option('nobody-user'))
559560
conf.set_quoted('NOBODY_GROUP_NAME', get_option('nobody-group'))
@@ -568,7 +569,7 @@ endif
568569
system_gid_max = system_gid_max.to_int()
569570
conf.set('SYSTEM_GID_MAX', system_gid_max)
570571
substs.set('systemgidmax', system_gid_max)
571-
message('Maximum system GID is @0@'.format(system_gid_max))
572+
message('maximum system GID is @0@'.format(system_gid_max))
572573

573574
tty_gid = get_option('tty-gid')
574575
conf.set('TTY_GID', tty_gid)

0 commit comments

Comments
 (0)