summaryrefslogtreecommitdiffstats
path: root/src/fundamental/macro-fundamental.h
diff options
context:
space:
mode:
authoranonymix007 <48598263+anonymix007@users.noreply.github.com>2024-10-11 15:44:54 +0200
committeranonymix007 <48598263+anonymix007@users.noreply.github.com>2024-10-11 22:07:44 +0200
commitcefa196723fd5dd29c2acf194e25b579b0ef12a0 (patch)
treed4b7c689e24631d7beada900ae7a9f3f73e16bf3 /src/fundamental/macro-fundamental.h
parentsystemd-update-helper: Show executed commands if debug logging is enabled (diff)
downloadsystemd-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.h4
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\"")