From 6e556e0818d096befb969e5f8c49f52437a2cece Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 Jan 2021 13:59:40 +0100 Subject: Suppress C++ warnings in C header --- src/suil_internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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__) -- cgit v1.2.1