Fixed EV_WARNING_* for non-MSVC

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2022-01-31 19:53:40 +02:00
parent 1455b26558
commit f78561ab59

View File

@@ -58,9 +58,11 @@
# if ( EV_CC_GCC ) # if ( EV_CC_GCC )
# define EV_PRAGMA_CC_NAME GCC # define EV_PRAGMA_CC_NAME GCC
# define EV_WARNING_DISABLE_GCC(w) EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic ignored "-W"w) # define EV_WARNING_DISABLE_GCC(w) EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic ignored "-W"w)
# define EV_WARNING_DISABLE_CLANG(...)
# elif ( EV_CC_CLANG ) # elif ( EV_CC_CLANG )
# define EV_PRAGMA_CC_NAME clang # define EV_PRAGMA_CC_NAME clang
# define EV_WARNING_DISABLE_CLANG(w) EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic ignored "-W"w) # define EV_WARNING_DISABLE_CLANG(w) EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic ignored "-W"w)
# define EV_WARNING_DISABLE_GCC(...)
# endif # endif
# define EV_WARNING_PUSH() EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic push) # define EV_WARNING_PUSH() EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic push)
# define EV_WARNING_POP() EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic pop) # define EV_WARNING_POP() EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic pop)