diff --git a/exprtk.hpp b/exprtk.hpp index 4a4db54..5238551 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -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;