summaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog6
-rw-r--r--sim/common/acinclude.m43
2 files changed, 8 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 3056cced231..86b3e6a62fa 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,9 @@
+2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
+
+ PR build/15414:
+ * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
+ -Wformat-nonliteral with -Wno-format.
+
2013-03-26 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Regenerate.
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4
index 73191f22dc3..583f7c35bac 100644
--- a/sim/common/acinclude.m4
+++ b/sim/common/acinclude.m4
@@ -872,7 +872,7 @@ fi
# NOTE: If you change this list, remember to update
# gdb/doc/gdbint.texinfo.
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wformat-nonliteral -Wno-pointer-sign \
+-Wno-pointer-sign \
-Wno-unused -Wunused-value -Wunused-function \
-Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
@@ -880,6 +880,7 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
# GCC versions complain about %I64.
case "${host}" in
*-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
+ *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
esac
AC_ARG_ENABLE(build-warnings,