diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-10 08:38:51 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-10 10:05:35 -0600 |
commit | 1a34f210bb9389e58d93caf4384800934fc7113a (patch) | |
tree | 24f8480bd7081b458ee143bfaa6ea994523b05f0 /gdb/warning.m4 | |
parent | 6688183925d82d4049931e95bc4e963ab66e770d (diff) | |
download | gdb-1a34f210bb9389e58d93caf4384800934fc7113a.zip gdb-1a34f210bb9389e58d93caf4384800934fc7113a.tar.gz gdb-1a34f210bb9389e58d93caf4384800934fc7113a.tar.bz2 |
Fix the clang build
Simon pointed out that gdb would not build with clang, due to the
addition of -Wimplicit-fallthrough. This patch fixes the problem by
using -Wimplicit-fallthrough=3 -- this does not work with clang,
bypassing the issue.
Tested by rebuilding with both gcc and clang; and also by verifying
that -Wimplicit-fallthrough=3 is used in the gcc build.
I will file a follow-up bug to convert the fall-through comments to a
form that can be used by both clang and gcc.
gdb/ChangeLog
2018-05-10 Tom Tromey <tom@tromey.com>
* configure: Rebuild.
* warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
gdb/gdbserver/ChangeLog
2018-05-10 Tom Tromey <tom@tromey.com>
* configure: Rebuild.
Diffstat (limited to 'gdb/warning.m4')
-rw-r--r-- | gdb/warning.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/warning.m4 b/gdb/warning.m4 index cb23472..632cc21 100644 --- a/gdb/warning.m4 +++ b/gdb/warning.m4 @@ -44,7 +44,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough \ +-Wimplicit-fallthrough=3 \ -Wduplicated-cond" case "${host}" in |