From: Pedro Alves Date: Wed, 5 Apr 2017 18:21:37 +0000 (+0100) Subject: -Wwrite-strings: Remove -Wno-write-strings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9bf2a700667c53003ece783c05e8b355801105f2;p=binutils-gdb.git -Wwrite-strings: Remove -Wno-write-strings AFAIK GDB is now free from -Wwrite-strings warnings. A few warnings may be left behind in some host-specific code, but those should be few and easy to fix. gdb/ChangeLog: 2017-04-05 Pedro Alves * warning.m4 (build_warnings): Remove -Wno-write-strings. * configure: Regenerate. gdb/gdbserver/ChangeLog: 2017-04-05 Pedro Alves * configure: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cbf3c0cb651..d21436c8d65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-04-05 Pedro Alves + + * warning.m4 (build_warnings): Remove -Wno-write-strings. + * configure: Regenerate. + 2017-04-05 Pedro Alves * ada-exp.y (yyerror): Constify. diff --git a/gdb/configure b/gdb/configure index 7fbae9f34b4..9f05b4bb7eb 100755 --- a/gdb/configure +++ b/gdb/configure @@ -15108,7 +15108,7 @@ 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-write-strings -Wno-narrowing" +-Wno-sign-compare -Wno-narrowing" # 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 a09006a5d42..9b0c8870fff 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2017-04-05 Pedro Alves + + * configure: Regenerate. + 2017-04-05 Pedro Alves * gdbreplay.c (sync_error): Constify. diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 6ae486539f4..64f96f54443 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -7148,7 +7148,7 @@ 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-write-strings -Wno-narrowing" +-Wno-sign-compare -Wno-narrowing" # 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 f04709edde5..83f69ec2293 100644 --- a/gdb/warning.m4 +++ b/gdb/warning.m4 @@ -40,7 +40,7 @@ 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-write-strings -Wno-narrowing" +-Wno-sign-compare -Wno-narrowing" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64.