aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-19 07:00:42 +0100
committerMike Frysinger <vapier@gmail.com>2023-04-19 16:44:51 -0400
commit36e4e04ba9ae654ffc677844074fa80e49109033 (patch)
tree1710da9ff3da8b531b7b47d3953897531b58d4a5
parenteb8831a1416ab2ee8123b3add78421c2aa316b39 (diff)
meson.build: add -Werror=... for modern C issues
Clang 16 makes these warnings fatal and GCC 14 is likely to as well.
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 53c885b3..55f5abc0 100644
--- a/meson.build
+++ b/meson.build
@@ -176,7 +176,10 @@ cc_warning_flags_test = [
'-Wsequence-point',
'-Wshadow',
'-Wwrite-strings',
+ '-Werror=implicit-int',
'-Werror=implicit-function-declaration',
+ '-Werror=int-conversion',
+ '-Werror=incompatible-function-pointer-types',
]
cc_warning_flags = cc.get_supported_arguments(cc_warning_flags_test)
cc_flags = [cc_debug_flags, cc_os_flags, cc_warning_flags]