mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Closes: https://bugs.gentoo.org/915503 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -90,44 +90,6 @@
|
|
endif
|
|
endif
|
|
|
|
-# a few compiler warning flags we always want enabled
|
|
-add_project_arguments(
|
|
- cc.get_supported_arguments([
|
|
- '-Werror=shadow',
|
|
- '-Werror=empty-body',
|
|
- '-Werror=strict-prototypes',
|
|
- '-Werror=missing-prototypes',
|
|
- '-Werror=implicit-function-declaration',
|
|
- '-Werror=pointer-arith',
|
|
- '-Werror=missing-declarations',
|
|
- '-Werror=return-type',
|
|
- '-Werror=int-conversion',
|
|
- '-Werror=incompatible-pointer-types',
|
|
- '-Werror=misleading-indentation',
|
|
- '-Werror=missing-include-dirs',
|
|
- '-Werror=declaration-after-statement',
|
|
- '-Werror=format-security',
|
|
-
|
|
- '-Wno-missing-field-initializers',
|
|
- '-Wno-error=missing-field-initializers',
|
|
- '-Wno-unused-parameter',
|
|
- '-Wno-error=unused-parameter',
|
|
- ]),
|
|
- language: 'c'
|
|
-)
|
|
-add_project_arguments(
|
|
- '-Wno-unused-parameter',
|
|
- '-Werror=empty-body',
|
|
- '-Werror=pointer-arith',
|
|
- '-Werror=init-self',
|
|
- '-Werror=missing-declarations',
|
|
- '-Werror=return-type',
|
|
- '-Werror=misleading-indentation',
|
|
- '-Werror=format-security',
|
|
-
|
|
- language: 'cpp'
|
|
-)
|
|
-
|
|
# Vendor extensions in system headers
|
|
if host_machine.system() != 'netbsd'
|
|
# on NetBSD, defining POSIX_C_SOURCE *removes* non-POSIX symbols from namespace,
|