diff options
-rw-r--r-- | func.cc | 4 | ||||
-rw-r--r-- | ninja.cc | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -64,7 +64,9 @@ void StripShellComment(string* cmd) { in++; break; } - /* FALLTHRU */ +#if defined(__has_cpp_attribute) && __has_cpp_attribute(clang::fallthrough) + [[clang::fallthrough]]; +#endif case '\'': case '"': @@ -530,7 +530,9 @@ class NinjaGenerator { case ':': case ' ': r += '$'; - // fall through. +#if defined(__has_cpp_attribute) && __has_cpp_attribute(clang::fallthrough) + [[clang::fallthrough]]; +#endif default: r += c; } |