From: Pino Toscano Date: Thu, 30 Aug 2018 10:13:43 +0000 (+0200) Subject: Disable -Wmissing-prototypes for GCC X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a1775ba94cbf77e60e97f5fe00ed3e524ca531a5;p=ocaml-libvirt.git Disable -Wmissing-prototypes for GCC We do not provide prototypes for all the C implementations of OCaml APIs, so just make GCC not warn about that for now. --- diff --git a/libvirt/libvirt_c_oneoffs.c b/libvirt/libvirt_c_oneoffs.c index 69d1b40..e4fd444 100644 --- a/libvirt/libvirt_c_oneoffs.c +++ b/libvirt/libvirt_c_oneoffs.c @@ -19,6 +19,10 @@ /* Please read libvirt/README file. */ +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wmissing-prototypes" +#endif + /*----------------------------------------------------------------------*/ CAMLprim value