forked from ariadne/pkgconf
meson: add warning for implicit-function-declarations
This would be triggered without the previous addition of -D_BSD_SOURCE for strdup, among othersmaster
parent
71974d8c54
commit
40ec08594e
|
@ -9,6 +9,9 @@ cc = meson.get_compiler('c')
|
||||||
add_project_arguments(
|
add_project_arguments(
|
||||||
'-D_BSD_SOURCE',
|
'-D_BSD_SOURCE',
|
||||||
'-D_DEFAULT_SOURCE',
|
'-D_DEFAULT_SOURCE',
|
||||||
|
cc.get_supported_arguments(
|
||||||
|
'-Wimplicit-function-declaration',
|
||||||
|
),
|
||||||
language : 'c',
|
language : 'c',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue