mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-07-08 03:09:03 +00:00
Disable fallthrough warnings for clang compiler
This commit is contained in:
@ -77,6 +77,15 @@ namespace exprtk
|
||||
#define exprtk_disable_fallthrough_end \
|
||||
_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
|
||||
#define exprtk_disable_fallthrough_begin (void)0;
|
||||
#define exprtk_disable_fallthrough_end (void)0;
|
||||
|
Reference in New Issue
Block a user