diff options
author | Íñigo Huguet <inigohuguet@hotmail.com> | 2024-03-01 07:46:20 +0000 |
---|---|---|
committer | Íñigo Huguet <inigohuguet@hotmail.com> | 2024-03-01 07:46:20 +0000 |
commit | 0af1575695883b073f27dd4996de57a554cea3b8 (patch) | |
tree | ea9a74c46a13ee086a925ab65fbce486682e608f | |
parent | d5c12a137b3b956a14e0f0bf5d9c2299ef13f075 (diff) | |
parent | b864eb2eb3bb3b22e8500352cac459ea6ce9cf5c (diff) |
merge: branch 'meson-warnings'
build: rework -Wall and -Wextra declaration
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1868
-rw-r--r-- | meson.build | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meson.build b/meson.build index bb1e19e6a0..b9e4ee2f01 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,7 @@ project( default_options: [ 'buildtype=debugoptimized', 'c_std=gnu11', + 'warning_level=2' # value "2" will add "-Wall" and "-Wextra" to the compiler flags ], meson_version: '>= 0.47.2', ) @@ -173,8 +174,6 @@ if enable_lto endif common_flags += cc.get_supported_arguments([ - '-Wall', - '-Wextra', '-Wcast-align=strict', '-Wdeclaration-after-statement', '-Wfloat-equal', |