build: merge branch 'th/build-cleanup-compiler-warnings'
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1445
This commit is contained in:
@@ -88,26 +88,34 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
|||||||
|
|
||||||
for option in \
|
for option in \
|
||||||
$_CFLAGS_MORE_WARNINGS_DISABLE_LTO \
|
$_CFLAGS_MORE_WARNINGS_DISABLE_LTO \
|
||||||
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Wdeclaration-after-statement \
|
-Wdeclaration-after-statement \
|
||||||
-Wfloat-equal \
|
-Wfloat-equal \
|
||||||
-Wformat-nonliteral \
|
-Wformat-nonliteral \
|
||||||
-Wformat-security \
|
-Wformat-security \
|
||||||
-Wimplicit-function-declaration \
|
-Wimplicit-function-declaration \
|
||||||
|
-Wimplicit-int \
|
||||||
-Winit-self \
|
-Winit-self \
|
||||||
|
-Wint-conversion \
|
||||||
-Wlogical-op \
|
-Wlogical-op \
|
||||||
-Wmissing-declarations \
|
-Wmissing-declarations \
|
||||||
-Wmissing-include-dirs \
|
-Wmissing-include-dirs \
|
||||||
-Wmissing-prototypes \
|
-Wmissing-prototypes \
|
||||||
|
-Wold-style-definition \
|
||||||
|
-Wparentheses-equality \
|
||||||
-Wpointer-arith \
|
-Wpointer-arith \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wshift-negative-value \
|
-Wshift-negative-value \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
|
-Wtypedef-redefinition \
|
||||||
-Wundef \
|
-Wundef \
|
||||||
|
-Wunknown-attributes \
|
||||||
-Wvla \
|
-Wvla \
|
||||||
-Wno-duplicate-decl-specifier \
|
-Wno-duplicate-decl-specifier \
|
||||||
-Wno-format-truncation \
|
-Wno-format-truncation \
|
||||||
-Wno-format-y2k \
|
-Wno-format-y2k \
|
||||||
|
-Wno-gnu-variable-sized-type-not-at-end \
|
||||||
-Wno-missing-field-initializers \
|
-Wno-missing-field-initializers \
|
||||||
-Wno-pragmas \
|
-Wno-pragmas \
|
||||||
-Wno-sign-compare \
|
-Wno-sign-compare \
|
||||||
|
13
meson.build
13
meson.build
@@ -179,16 +179,22 @@ common_flags += cc.get_supported_arguments([
|
|||||||
'-Wformat-nonliteral',
|
'-Wformat-nonliteral',
|
||||||
'-Wformat-security',
|
'-Wformat-security',
|
||||||
'-Wimplicit-function-declaration',
|
'-Wimplicit-function-declaration',
|
||||||
|
'-Wimplicit-int',
|
||||||
'-Winit-self',
|
'-Winit-self',
|
||||||
|
'-Wint-conversion',
|
||||||
'-Wlogical-op',
|
'-Wlogical-op',
|
||||||
'-Wmissing-declarations',
|
'-Wmissing-declarations',
|
||||||
'-Wmissing-include-dirs',
|
'-Wmissing-include-dirs',
|
||||||
'-Wmissing-prototypes',
|
'-Wmissing-prototypes',
|
||||||
|
'-Wold-style-definition',
|
||||||
|
'-Wparentheses-equality',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
'-Wshadow',
|
'-Wshadow',
|
||||||
'-Wshift-negative-value',
|
'-Wshift-negative-value',
|
||||||
'-Wstrict-prototypes',
|
'-Wstrict-prototypes',
|
||||||
|
'-Wtypedef-redefinition',
|
||||||
'-Wundef',
|
'-Wundef',
|
||||||
|
'-Wunknown-attributes',
|
||||||
'-Wvla',
|
'-Wvla',
|
||||||
'-Wno-duplicate-decl-specifier',
|
'-Wno-duplicate-decl-specifier',
|
||||||
'-Wno-format-truncation',
|
'-Wno-format-truncation',
|
||||||
@@ -200,13 +206,6 @@ common_flags += cc.get_supported_arguments([
|
|||||||
'-Wno-tautological-constant-out-of-range-compare',
|
'-Wno-tautological-constant-out-of-range-compare',
|
||||||
'-Wno-unknown-pragmas',
|
'-Wno-unknown-pragmas',
|
||||||
'-Wno-unused-parameter',
|
'-Wno-unused-parameter',
|
||||||
'-Wparentheses-equality',
|
|
||||||
'-Wpointer-arith',
|
|
||||||
'-Wshadow',
|
|
||||||
'-Wstrict-prototypes',
|
|
||||||
'-Wtypedef-redefinition',
|
|
||||||
'-Wundef',
|
|
||||||
'-Wunknown-attributes',
|
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user