Only use -Wbool-operation when compiling with GCC 7+

This commit is contained in:
kobalicek
2019-03-20 09:44:11 +01:00
parent 02d24af4c0
commit fc251c914e

View File

@@ -53,7 +53,9 @@
// [GCC] // [GCC]
#if ASMJIT_CC_GCC #if ASMJIT_CC_GCC
# pragma GCC diagnostic push # 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) # if ASMJIT_CC_GCC_GE(8, 0, 0)
# pragma GCC diagnostic ignored "-Wclass-memaccess" # pragma GCC diagnostic ignored "-Wclass-memaccess"
# endif # endif