From db90770ec5e867cc120a9753bf928f081002c2e7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 18 Jan 2012 12:47:49 +0000 Subject: [PATCH] ocaml: Add -Wno-missing-field-initializers to avoid a warning. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index fa974792a..6e42423d6 100644 --- a/configure.ac +++ b/configure.ac @@ -141,6 +141,10 @@ if test "$gl_gcc_warnings" = yes; then # Work around warning in src/inspect.c. This seems to be a bug in gcc 4.5.1. gl_WARN_ADD([-Wno-strict-overflow]) + # Missing field initializers is not a bug in C. Adding this to $nw above + # did not work, so force it here instead. + gl_WARN_ADD([-Wno-missing-field-initializers]) + gl_WARN_ADD([-fdiagnostics-show-option]) AC_SUBST([WARN_CFLAGS])