diff options
author | David Robillard <d@drobilla.net> | 2021-01-11 13:59:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-11 14:01:49 +0100 |
commit | 6e556e0818d096befb969e5f8c49f52437a2cece (patch) | |
tree | 9b21104621de096b2b731502da8404db74c4a9f6 /src | |
parent | 335c96ccb66d62024fe14c7eacfc6f1c84153a85 (diff) | |
download | suil-6e556e0818d096befb969e5f8c49f52437a2cece.tar.gz suil-6e556e0818d096befb969e5f8c49f52437a2cece.tar.bz2 suil-6e556e0818d096befb969e5f8c49f52437a2cece.zip |
Suppress C++ warnings in C header
Diffstat (limited to 'src')
-rw-r--r-- | src/suil_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/suil_internal.h b/src/suil_internal.h index 0a7ed92..ac6e563 100644 --- a/src/suil_internal.h +++ b/src/suil_internal.h @@ -34,6 +34,11 @@ #ifdef __cplusplus extern "C" { +# if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wold-style-cast" +# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" +# endif #endif #define SUIL_ERRORF(fmt, ...) fprintf(stderr, "suil error: " fmt, __VA_ARGS__) |