aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-14 15:51:16 +0200
committerDavid Robillard <d@drobilla.net>2020-08-14 19:07:52 +0200
commit54b9109a8e0fce21deb8082b9a53f419cb82fc27 (patch)
treef599bdcc509f6fae5e20a67889780cd26a9b804c /serd/serd.h
parent20fd53a1f360645ec9837770b45edebae3eaf556 (diff)
downloadserd-54b9109a8e0fce21deb8082b9a53f419cb82fc27.tar.gz
serd-54b9109a8e0fce21deb8082b9a53f419cb82fc27.tar.bz2
serd-54b9109a8e0fce21deb8082b9a53f419cb82fc27.zip
Suppress Wzero-as-null-pointer-constant in header for GCC as well
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h10
1 files 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