diff options
author | David Robillard <d@drobilla.net> | 2020-08-14 15:51:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-14 19:07:52 +0200 |
commit | 54b9109a8e0fce21deb8082b9a53f419cb82fc27 (patch) | |
tree | f599bdcc509f6fae5e20a67889780cd26a9b804c /serd | |
parent | 20fd53a1f360645ec9837770b45edebae3eaf556 (diff) | |
download | serd-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')
-rw-r--r-- | serd/serd.h | 10 |
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 |