File gcc-4.9.2-no_narrowing.patch of Package mingw32-gcc
--- gcc/configure 2014-10-10 14:51:28.000000000 +0200
+++ gcc/configure 2014-11-05 12:47:31.541503251 +0100
@@ -6303,7 +6303,7 @@
fi
loose_warn=
save_CFLAGS="$CFLAGS"
-for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
+for real_option in -W -Wall -Wwrite-strings -Wcast-qual $wf_opt; do
# Do the check with the no- prefix removed since gcc silently
# accepts any -Wno-* option on purpose
case $real_option in
--- gcc/configure.ac 2014-10-10 14:51:28.000000000 +0200
+++ gcc/configure.ac 2014-11-05 12:47:37.052376278 +0100
@@ -333,7 +333,7 @@
AS_IF([test $enable_build_format_warnings = no],
[wf_opt=-Wno-format],[wf_opt=])
ACX_PROG_CC_WARNING_OPTS(
- m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt])), [loose_warn])
+ m4_quote(m4_do([-W -Wall -Wwrite-strings -Wcast-qual $wf_opt])), [loose_warn])
ACX_PROG_CC_WARNING_OPTS(
m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes])),
[c_loose_warn])
--- libcpp/configure 2014-10-30 09:28:58.000000000 +0100
+++ libcpp/configure 2014-11-05 12:47:42.754244838 +0100
@@ -4683,7 +4683,7 @@
warn=
save_CFLAGS="$CFLAGS"
-for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
+for real_option in -W -Wall -Wwrite-strings \
-Wmissing-format-attribute; do
# Do the check with the no- prefix removed since gcc silently
# accepts any -Wno-* option on purpose
--- libcpp/configure.ac 2014-02-24 16:08:00.000000000 +0100
+++ libcpp/configure.ac 2014-11-05 12:47:25.621639673 +0100
@@ -25,7 +25,7 @@
# Figure out what compiler warnings we can enable.
# See config/warnings.m4 for details.
-ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wno-narrowing -Wwrite-strings \
+ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings \
-Wmissing-format-attribute], [warn])
ACX_PROG_CC_WARNING_OPTS([-Wstrict-prototypes -Wmissing-prototypes \
-Wold-style-definition -Wc++-compat], [c_warn])