aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-09-05 21:21:51 -0600
committerTom Tromey <tom@tromey.com>2018-09-05 21:47:33 -0600
commitaf39b1c216ffb11e6ca8e8607b00749e0fc1ab41 (patch)
tree2c1e035ca006f6e98e6b9d844f3139ad386b9d21 /gdb/ChangeLog
parent4f075c06a3adbccdc2712c3e24afc7d4814149c7 (diff)
downloadgdb-af39b1c216ffb11e6ca8e8607b00749e0fc1ab41.zip
gdb-af39b1c216ffb11e6ca8e8607b00749e0fc1ab41.tar.gz
gdb-af39b1c216ffb11e6ca8e8607b00749e0fc1ab41.tar.bz2
Disable -Wformat-nonliteral in parts of printcmd.c
commit 3322c5d9a1 ("Remove unneeded explicit .o targets") broke the build with clang, because -Wno-format-nonliteral was in fact needed. This patch fixes the problem by introducing DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL and using it in printcmd.c. This seems preferable to reverting the patch because now the warning suppression is more targeted. gdb/ChangeLog 2018-09-05 Simon Marchi <simon.marchi@ericsson.com> * printcmd.c (printf_c_string): Use DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. (printf_wide_c_string, printf_pointer, ui_printf): Likewise. include/ChangeLog 2018-09-05 Simon Marchi <simon.marchi@ericsson.com> * diagnostics.h (DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL): New macro.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 084765d..d8ca6d3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
+
+ * printcmd.c (printf_c_string): Use
+ DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
+ (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
+
2018-09-05 Tom Tromey <tom@tromey.com>
* cli/cli-cmds.c (shell_escape, edit_command): Remove cast.