From fc251c914e77cd079e58982cdab00a47539d7fc5 Mon Sep 17 00:00:00 2001 From: kobalicek Date: Wed, 20 Mar 2019 09:44:11 +0100 Subject: [PATCH] Only use -Wbool-operation when compiling with GCC 7+ --- src/asmjit/asmjit_apibegin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/asmjit/asmjit_apibegin.h b/src/asmjit/asmjit_apibegin.h index c26f2ec..19db2e7 100644 --- a/src/asmjit/asmjit_apibegin.h +++ b/src/asmjit/asmjit_apibegin.h @@ -53,7 +53,9 @@ // [GCC] #if ASMJIT_CC_GCC # pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wbool-operation" +# if ASMJIT_CC_GCC_GE(7, 0, 0) +# pragma GCC diagnostic ignored "-Wbool-operation" +# endif # if ASMJIT_CC_GCC_GE(8, 0, 0) # pragma GCC diagnostic ignored "-Wclass-memaccess" # endif