aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-24 18:21:45 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-24 18:21:45 +0300
commitf0438883c91b739192284931763ffd85d3488195 (patch)
tree1d60848b1d583c5ecfb7d2ba1d889f3d10bed923
parent439c55fa780eddb5819f67ab76a4a6bfec8bb4e7 (diff)
Fix GCC 8 -fimplicit-fallthrough warnings
-rw-r--r--build2/cc/compile-rule.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx
index 51a30ae..4431abd 100644
--- a/build2/cc/compile-rule.cxx
+++ b/build2/cc/compile-rule.cxx
@@ -169,6 +169,7 @@ namespace build2
case lang::cxx: return "c++";
}
}
+ // Fall through.
case compiler_id::clang:
case compiler_id::clang_apple:
{
@@ -183,6 +184,7 @@ namespace build2
case lang::cxx: return m ? "c++-module" : "c++";
}
}
+ // Fall through.
case compiler_id::msvc:
{
switch (x_lang)
@@ -191,6 +193,7 @@ namespace build2
case lang::cxx: return "/TP";
}
}
+ // Fall through.
case compiler_id::icc:
{
switch (x_lang)