Disable fallthrough warnings for clang compiler
This commit is contained in:
parent
806c519c91
commit
39863eb784
|
@ -77,6 +77,15 @@ namespace exprtk
|
||||||
#define exprtk_disable_fallthrough_end \
|
#define exprtk_disable_fallthrough_end \
|
||||||
_Pragma ("GCC diagnostic pop") \
|
_Pragma ("GCC diagnostic pop") \
|
||||||
|
|
||||||
|
#elif defined(__clang__)
|
||||||
|
|
||||||
|
#define exprtk_disable_fallthrough_begin \
|
||||||
|
_Pragma ("clang diagnostic push") \
|
||||||
|
_Pragma ("clang diagnostic ignored \"-Wimplicit-fallthrough\"") \
|
||||||
|
|
||||||
|
#define exprtk_disable_fallthrough_end \
|
||||||
|
_Pragma ("clang diagnostic pop") \
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define exprtk_disable_fallthrough_begin (void)0;
|
#define exprtk_disable_fallthrough_begin (void)0;
|
||||||
#define exprtk_disable_fallthrough_end (void)0;
|
#define exprtk_disable_fallthrough_end (void)0;
|
||||||
|
|
Loading…
Reference in New Issue