summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-01-18 12:47:49 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-01-23 18:16:13 +0000
commit6e618ff21b38287de77ce56406266d13db39f96a (patch)
tree7805fd00be5fa2a02855bed582fd04459fb5d183
parent54912716d0495102808a7a0f719df134a151981e (diff)
downloadlibguestfs-6e618ff21b38287de77ce56406266d13db39f96a.tar.gz
libguestfs-6e618ff21b38287de77ce56406266d13db39f96a.tar.xz
libguestfs-6e618ff21b38287de77ce56406266d13db39f96a.zip
ocaml: Add -Wno-missing-field-initializers to avoid a warning.
(cherry picked from commit db90770ec5e867cc120a9753bf928f081002c2e7)
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 14b8bc40..d137c82c 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])