Commit 1fa1f601 authored by Tim Rühsen's avatar Tim Rühsen

Remove hard-coded gcc warn flag -Wno-missing-field-initializers

That flag is not understood by e.g. Solaris cc.
parent 89b835ad
Pipeline #22245741 passed with stages
in 22 minutes 54 seconds
......@@ -92,6 +92,7 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wtraditional-conversion" # Too many complaints for now.
nw="$nw -Wunreachable-code" # gcc bug 40412
nw="$nw -Wswitch-default" # Nothing wrong with default-less switch?
nw="$nw -Wmissing-field-initializers" # Avoid spamming in tests/ directory
gl_MANYWARN_COMPLEMENT([warnings], [$warnings], [$nw])
for w in $warnings; do
......@@ -99,7 +100,8 @@ if test "$gl_gcc_warnings" = yes; then
done
gl_WARN_ADD([-fdiagnostics-show-option])
gl_WARN_ADD([-fdiagnostics-color=always]) # colors even when using ccache
gl_WARN_ADD([-fdiagnostics-color=always]) # colors even when using ccache
gl_WARN_ADD([-Wno-missing-field-initializers]) # # Avoid spamming in tests/ directory
fi
AC_ARG_ENABLE(doc,
......
......@@ -16,7 +16,7 @@
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(srcdir) -I$(top_builddir)
AM_CPPFLAGS += -I$(top_builddir)/gl -I$(top_srcdir)/gl
AM_CPPFLAGS += -DSRCDIR=\"$(srcdir)\"
AM_CFLAGS = $(WARN_CFLAGS) -Wno-missing-field-initializers
AM_CFLAGS = $(WARN_CFLAGS)
AM_LDFLAGS = -no-install
if !HAVE_LIBUNISTRING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment