From a1775ba94cbf77e60e97f5fe00ed3e524ca531a5 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 30 Aug 2018 12:13:43 +0200 Subject: [PATCH] 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. --- libvirt/libvirt_c_oneoffs.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.8.3.1