diff options
author | anonymix007 <48598263+anonymix007@users.noreply.github.com> | 2024-10-11 15:44:54 +0200 |
---|---|---|
committer | anonymix007 <48598263+anonymix007@users.noreply.github.com> | 2024-10-11 22:07:44 +0200 |
commit | cefa196723fd5dd29c2acf194e25b579b0ef12a0 (patch) | |
tree | d4b7c689e24631d7beada900ae7a9f3f73e16bf3 /src/fundamental/macro-fundamental.h | |
parent | systemd-update-helper: Show executed commands if debug logging is enabled (diff) | |
download | systemd-cefa196723fd5dd29c2acf194e25b579b0ef12a0.tar.xz systemd-cefa196723fd5dd29c2acf194e25b579b0ef12a0.zip |
macro: Add DISABLE_WARNING_STRINGOP_OVERREAD
While at it, also add -Wunknown-warning-option to basic_disabled_warnings to fix compilation with clang
Diffstat (limited to '')
-rw-r--r-- | src/fundamental/macro-fundamental.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 7b79732326..7e604b8283 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -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\"") |