[ocaml PATCH 5/6] Build libvirt_generated.c with -Wmissing-prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux