From 40ec08594ec7097e22b6be01d15aa45851967a0e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 29 Jul 2022 10:20:29 -0700 Subject: [PATCH] meson: add warning for implicit-function-declarations This would be triggered without the previous addition of -D_BSD_SOURCE for strdup, among others --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 2307f24..986b534 100644 --- a/meson.build +++ b/meson.build @@ -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', )