diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-28 19:11:10 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-03-07 18:00:15 +0000 |
commit | aac331e484bba9736f12602da3715c8f7e0f1a45 (patch) | |
tree | da8fad8606201c5d428e92a02991a2b06e8dd687 /gdb/configure | |
parent | 366c75fc9183e46fe151aefb40f2d55a17815cb7 (diff) | |
download | gdb-aac331e484bba9736f12602da3715c8f7e0f1a45.zip gdb-aac331e484bba9736f12602da3715c8f7e0f1a45.tar.gz gdb-aac331e484bba9736f12602da3715c8f7e0f1a45.tar.bz2 |
Remove C-specific warnings from common warning set
Whoops, these are C specific, but I somehow missed the warnings before:
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wmissing-parameter-type’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wold-style-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wold-style-definition’ is valid for C/ObjC but not for C++ [enabled by default]
gdb/ChangeLog:
2015-03-07 Pedro Alves <palves@redhat.com>
* configure.ac (build_warnings): Move -Wmissing-prototypes
-Wdeclaration-after-statement -Wmissing-parameter-type
-Wold-style-declaration -Wold-style-definition to the C-specific
set.
* configure: Regenerate.
gdb/gdbserver/ChangeLog:
2015-03-07 Pedro Alves <palves@redhat.com>
* configure.ac (build_warnings): Move
-Wdeclaration-after-statement to the C-specific set.
* configure: Regenerate.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/configure b/gdb/configure index 3297d37..1ddcc62 100755 --- a/gdb/configure +++ b/gdb/configure @@ -13383,18 +13383,19 @@ if test "${ERROR_ON_WARNING}" = yes ; then fi # These options work in either C or C++ modes. -build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ +build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ --Wno-switch -Wno-char-subscripts -Wmissing-prototypes \ --Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \ --Wold-style-declaration -Wold-style-definition" +-Wno-switch -Wno-char-subscripts \ +-Wempty-body" # Now add in C and C++ specific options, depending on mode. if test "$enable_build_with_cxx" = "yes"; then build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \ -Wno-narrowing" else - build_warnings="$build_warnings -Wpointer-sign" + build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \ +-Wdeclaration-after-statement -Wmissing-parameter-type \ +-Wold-style-declaration -Wold-style-definition" fi # Enable -Wno-format by default when using gcc on mingw since many |