diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-01 17:02:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-01 17:02:16 +0200 |
commit | c49b0e8ca53928cc20e9d4832536baaeee6d7a9d (patch) | |
tree | 91c980addf8ddc0c04feebb93699488e4385918b /build2/cc | |
parent | febcacdb5a60d37c2a56c9aad7b636be799940cd (diff) |
Fix GCC 7 -fimplicit-fallthrough warnings
Diffstat (limited to 'build2/cc')
-rw-r--r-- | build2/cc/lexer.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/build2/cc/lexer.cxx b/build2/cc/lexer.cxx index e904921..8a64ce7 100644 --- a/build2/cc/lexer.cxx +++ b/build2/cc/lexer.cxx @@ -462,8 +462,8 @@ namespace build2 { if (n > 1 && id[1] == '8') ++i; - // Fall through. } + // Fall through. case 'L': case 'U': { @@ -980,12 +980,8 @@ namespace build2 switch (c) { case '\n': - { - if (!nl) - break; - - // Fall through. - } + if (!nl) break; + // Fall through. case ' ': case '\t': case '\r': |