Disable -Wmissing-prototypes for GCC
authorPino Toscano <ptoscano@redhat.com>
Thu, 30 Aug 2018 10:13:43 +0000 (12:13 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 30 Aug 2018 10:26:32 +0000 (11:26 +0100)
We do not provide prototypes for all the C implementations of OCaml
APIs, so just make GCC not warn about that for now.

libvirt/libvirt_c_oneoffs.c

index 69d1b40..e4fd444 100644 (file)
 
 /* Please read libvirt/README file. */
 
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
+#endif
+
 /*----------------------------------------------------------------------*/
 
 CAMLprim value