From 8465943af6a6f756c3d4b077eb1081ade927b26b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 17 Jun 2017 23:18:49 +0200 Subject: [PATCH] gdb: Add -Wno-mismatched-tags clang complains that for some types, we use both the class and struct keywords in different places. It's not really a problem, so I think we can safely turn this warning off. gdb/ChangeLog: * configure: Re-generate. * warning.m4 (build_warnings): Add -Wno-mismatched-tags. gdb/gdbserver/ChangeLog: * configure: Re-generate. --- gdb/ChangeLog | 5 +++++ gdb/configure | 3 ++- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/configure | 3 ++- gdb/warning.m4 | 3 ++- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c14e2042578..a08c78123d4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-06-17 Simon Marchi + + * configure: Re-generate. + * warning.m4 (build_warnings): Add -Wno-mismatched-tags. + 2017-06-17 Simon Marchi * configure: Re-generate. diff --git a/gdb/configure b/gdb/configure index df2747ad4fb..755e3dccf18 100755 --- a/gdb/configure +++ b/gdb/configure @@ -15151,7 +15151,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts \ -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized" +-Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \ +-Wno-mismatched-tags" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64. diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 2eb492ed9ad..a90a562f9ef 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -2,6 +2,10 @@ * configure: Re-generate. +2017-06-17 Simon Marchi + + * configure: Re-generate. + 2017-06-17 Simon Marchi * Makefile.in (COMPILE.pre): Add "-x c++". diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 2550c7b14e5..35aeabc3141 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -7148,7 +7148,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts \ -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized" +-Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \ +-Wno-mismatched-tags" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64. diff --git a/gdb/warning.m4 b/gdb/warning.m4 index 00e0f3899d7..0b6aaab79aa 100644 --- a/gdb/warning.m4 +++ b/gdb/warning.m4 @@ -40,7 +40,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts \ -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized" +-Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \ +-Wno-mismatched-tags" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64. -- 2.30.2