mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
macro: Add DISABLE_WARNING_STRINGOP_OVERREAD
While at it, also add -Wunknown-warning-option to basic_disabled_warnings to fix compilation with clang
This commit is contained in:
parent
8b8668b9e7
commit
cefa196723
@ -367,6 +367,7 @@ endif
|
||||
# avoid them.
|
||||
basic_disabled_warnings = [
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-unknown-warning-option',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-nonnull-compare',
|
||||
]
|
||||
|
@ -32,6 +32,10 @@
|
||||
_Pragma("GCC diagnostic push"); \
|
||||
_Pragma("GCC diagnostic ignored \"-Wshadow\"")
|
||||
|
||||
#define DISABLE_WARNING_STRINGOP_OVERREAD \
|
||||
_Pragma("GCC diagnostic push"); \
|
||||
_Pragma("GCC diagnostic ignored \"-Wstringop-overread\"")
|
||||
|
||||
#define DISABLE_WARNING_INCOMPATIBLE_POINTER_TYPES \
|
||||
_Pragma("GCC diagnostic push"); \
|
||||
_Pragma("GCC diagnostic ignored \"-Wincompatible-pointer-types\"")
|
||||
|
Loading…
Reference in New Issue
Block a user