meson: add warning for implicit-function-declarations

This would be triggered without the previous addition of -D_BSD_SOURCE
for strdup, among others
master
Dylan Baker 2022-07-29 10:20:29 -07:00
parent 71974d8c54
commit 40ec08594e
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ cc = meson.get_compiler('c')
add_project_arguments(
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
cc.get_supported_arguments(
'-Wimplicit-function-declaration',
),
language : 'c',
)