1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Avoid "implicit fallthrough" warnings also from clang.

This commit is contained in:
Bruno Haible
2018-09-09 01:14:20 +02:00
parent 11487a61ce
commit 50840436d5
10 changed files with 72 additions and 56 deletions

View File

@@ -1,3 +1,19 @@
2018-09-08 Bruno Haible <bruno@clisp.org>
Avoid "implicit fallthrough" warnings also from clang.
Reported by Nico Weber <thakis@chromium.org> in
<https://savannah.gnu.org/bugs/?53029>.
Clang emits these warnings in C++11 mode only, see
<https://clang.llvm.org/docs/AttributeReference.html#fallthrough>,
and only in clang 3.9 or newer, see
<http://releases.llvm.org/3.9.0/tools/clang/docs/ReleaseNotes.html>.
To avoid them, either [[fallthrough]] or the (nearly equivalent) older
[[clang::fallthrough]] can be used, see
<http://llvm.org/viewvc/llvm-project?view=revision&revision=262881>.
* src/output.cc (Output::output_hash_function): Enhance the fallthrough
marker.
* tests/*.exp: Update.
2018-09-08 Bruno Haible <bruno@clisp.org>
Fix failure of "make check -j2".