diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/netdev/netdev-gperf.gperf | 3 | ||||
-rw-r--r-- | src/network/networkd-gperf.gperf | 3 | ||||
-rw-r--r-- | src/network/networkd-network-gperf.gperf | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/network/netdev/netdev-gperf.gperf b/src/network/netdev/netdev-gperf.gperf index be010665c5..be61e208a0 100644 --- a/src/network/netdev/netdev-gperf.gperf +++ b/src/network/netdev/netdev-gperf.gperf @@ -1,7 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ %{ -#if __GNUC__ >= 7 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") +#if __GNUC__ >= 15 +_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"") #endif #include <stddef.h> #include "bareudp.h" diff --git a/src/network/networkd-gperf.gperf b/src/network/networkd-gperf.gperf index 21e8d12690..2eb847d119 100644 --- a/src/network/networkd-gperf.gperf +++ b/src/network/networkd-gperf.gperf @@ -1,7 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ %{ -#if __GNUC__ >= 7 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") +#if __GNUC__ >= 15 +_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"") #endif #include <stddef.h> #include "conf-parser.h" diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf index dc462b690c..9a25be666b 100644 --- a/src/network/networkd-network-gperf.gperf +++ b/src/network/networkd-network-gperf.gperf @@ -1,7 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ %{ -#if __GNUC__ >= 7 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") +#if __GNUC__ >= 15 +_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"") #endif #include <netinet/icmp6.h> #include <stddef.h> |