]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: sort compiler flags 19783/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Jun 2021 06:53:29 +0000 (15:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Jun 2021 06:53:29 +0000 (15:53 +0900)
meson.build

index 696d84951c00508101b8553521180e8eb2bd0b05..8a83a4e268cf530bc6c23ff5e10a52503354320a 100644 (file)
@@ -319,38 +319,38 @@ endif
 # Those generate many false positives, and we do not want to change the code to
 # avoid them.
 basic_disabled_warnings = [
-        '-Wno-unused-parameter',
+        '-Wno-format-signedness',
         '-Wno-missing-field-initializers',
+        '-Wno-unused-parameter',
         '-Wno-unused-result',
-        '-Wno-format-signedness',
 ]
 
 possible_common_cc_flags = [
+        '-Wdate-time',
+        '-Wendif-labels',
+        '-Werror=format=2',
+        '-Werror=implicit-function-declaration',
+        '-Werror=incompatible-pointer-types',
+        '-Werror=overflow',
+        '-Werror=return-type',
+        '-Werror=shift-count-overflow',
+        '-Werror=shift-overflow=2',
         '-Werror=undef',
+        '-Wfloat-equal',
+        '-Wimplicit-fallthrough=5',
+        '-Winit-self',
         '-Wlogical-op',
         '-Wmissing-include-dirs',
+        '-Wmissing-noreturn',
+        '-Wnested-externs',
         '-Wold-style-definition',
         '-Wpointer-arith',
-        '-Winit-self',
-        '-Wfloat-equal',
-        '-Wsuggest-attribute=noreturn',
-        '-Werror=implicit-function-declaration',
-        '-Werror=return-type',
-        '-Werror=incompatible-pointer-types',
-        '-Werror=format=2',
-        '-Wstrict-prototypes',
         '-Wredundant-decls',
-        '-Wmissing-noreturn',
-        '-Wimplicit-fallthrough=5',
         '-Wshadow',
-        '-Wendif-labels',
         '-Wstrict-aliasing=2',
+        '-Wstrict-prototypes',
+        '-Wsuggest-attribute=noreturn',
         '-Wwrite-strings',
-        '-Werror=overflow',
-        '-Werror=shift-count-overflow',
-        '-Werror=shift-overflow=2',
-        '-Wdate-time',
-        '-Wnested-externs',
 
         # negative arguments are correctly detected starting with meson 0.46.
         '-Wno-error=#warnings',  # clang