From 54b9109a8e0fce21deb8082b9a53f419cb82fc27 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Aug 2020 15:51:16 +0200 Subject: Suppress Wzero-as-null-pointer-constant in header for GCC as well --- serd/serd.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serd/serd.h b/serd/serd.h index e1d4bfa5..52b78097 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -46,9 +46,9 @@ #ifdef __cplusplus extern "C" { -# if defined(__clang__) -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +# if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" # endif #endif @@ -1089,8 +1089,8 @@ serd_writer_finish(SerdWriter* writer); */ #ifdef __cplusplus -# if defined(__clang__) -# pragma clang diagnostic pop +# if defined(__GNUC__) +# pragma GCC diagnostic pop # endif } /* extern "C" */ #endif -- cgit v1.2.1