mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
meson: sort compiler flags
This commit is contained in:
parent
6526736397
commit
505ab9dda2
46
meson.build
46
meson.build
|
@ -319,38 +319,38 @@ endif
|
||||||
# Those generate many false positives, and we do not want to change the code to
|
# Those generate many false positives, and we do not want to change the code to
|
||||||
# avoid them.
|
# avoid them.
|
||||||
basic_disabled_warnings = [
|
basic_disabled_warnings = [
|
||||||
'-Wno-unused-parameter',
|
|
||||||
'-Wno-missing-field-initializers',
|
|
||||||
'-Wno-unused-result',
|
|
||||||
'-Wno-format-signedness',
|
'-Wno-format-signedness',
|
||||||
|
'-Wno-missing-field-initializers',
|
||||||
|
'-Wno-unused-parameter',
|
||||||
|
'-Wno-unused-result',
|
||||||
]
|
]
|
||||||
|
|
||||||
possible_common_cc_flags = [
|
possible_common_cc_flags = [
|
||||||
'-Werror=undef',
|
'-Wdate-time',
|
||||||
'-Wlogical-op',
|
|
||||||
'-Wmissing-include-dirs',
|
|
||||||
'-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',
|
'-Wendif-labels',
|
||||||
'-Wstrict-aliasing=2',
|
'-Werror=format=2',
|
||||||
'-Wwrite-strings',
|
'-Werror=implicit-function-declaration',
|
||||||
|
'-Werror=incompatible-pointer-types',
|
||||||
'-Werror=overflow',
|
'-Werror=overflow',
|
||||||
|
'-Werror=return-type',
|
||||||
'-Werror=shift-count-overflow',
|
'-Werror=shift-count-overflow',
|
||||||
'-Werror=shift-overflow=2',
|
'-Werror=shift-overflow=2',
|
||||||
'-Wdate-time',
|
'-Werror=undef',
|
||||||
|
'-Wfloat-equal',
|
||||||
|
'-Wimplicit-fallthrough=5',
|
||||||
|
'-Winit-self',
|
||||||
|
'-Wlogical-op',
|
||||||
|
'-Wmissing-include-dirs',
|
||||||
|
'-Wmissing-noreturn',
|
||||||
'-Wnested-externs',
|
'-Wnested-externs',
|
||||||
|
'-Wold-style-definition',
|
||||||
|
'-Wpointer-arith',
|
||||||
|
'-Wredundant-decls',
|
||||||
|
'-Wshadow',
|
||||||
|
'-Wstrict-aliasing=2',
|
||||||
|
'-Wstrict-prototypes',
|
||||||
|
'-Wsuggest-attribute=noreturn',
|
||||||
|
'-Wwrite-strings',
|
||||||
|
|
||||||
# negative arguments are correctly detected starting with meson 0.46.
|
# negative arguments are correctly detected starting with meson 0.46.
|
||||||
'-Wno-error=#warnings', # clang
|
'-Wno-error=#warnings', # clang
|
||||||
|
|
Loading…
Reference in a new issue