From 578243d68e30fe210196e05d3dcfae25cdb2464d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 16 Feb 2022 18:43:13 +0100 Subject: Suppress warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common.h b/common.h index 8863661..958c7b0 100644 --- a/common.h +++ b/common.h @@ -53,6 +53,16 @@ # endif #endif +#ifndef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-macros" +#endif +#ifdef WARN_UNKNOWN_ENDIAN +# define WARN_UNKNOWN_ENDIAN__ +#endif +#ifndef __GNUC__ +# pragma GCC diagnostic pop +#endif #define LITTLE_ENDIAN__ 1234 #define BIG_ENDIAN__ 4321 @@ -69,7 +79,7 @@ # endif #else # ifdef __GNUC__ -# ifdef WARN_UNKNOWN_ENDIAN +# ifdef WARN_UNKNOWN_ENDIAN__ # warning The host endian is unknown # endif # endif -- cgit v1.2.3-70-g09d2