[libvirt] [ocaml PATCH 5/6] Build libvirt_generated.c with -Wmissing-prototypes
Pino Toscano
ptoscano at redhat.com
Tue Sep 3 08:43:05 UTC 2019
There are no prototypes for the autogenerated C functions, so build this
source with that too. Previously it was pulled in when all the sources
were built as one.
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
libvirt/generator.pl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvirt/generator.pl b/libvirt/generator.pl
index cb2b845..ac3dd65 100755
--- a/libvirt/generator.pl
+++ b/libvirt/generator.pl
@@ -234,6 +234,10 @@ print F <<'END';
#include "libvirt_c.h"
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
+#endif
+
END
#----------------------------------------------------------------------
--
2.21.0
More information about the libvir-list
mailing list