From: Richard W.M. Jones Date: Tue, 6 Jun 2017 14:13:09 +0000 (+0100) Subject: Fix a few GCC warnings. X-Git-Tag: v0.6~33 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=864440e04886ac660fc980b06ecc8148eb3b68f7;hp=54ddc8a42c74872e0bd97c52552b8bf72305e617;p=ocaml-augeas.git Fix a few GCC warnings. --- diff --git a/augeas-c.c b/augeas-c.c index 0b535d6..3d3cb27 100644 --- a/augeas-c.c +++ b/augeas-c.c @@ -56,7 +56,7 @@ augeas_t_finalize (value tv) } static struct custom_operations custom_operations = { - "augeas_t_custom_operations", + (char *) "augeas_t_custom_operations", augeas_t_finalize, custom_compare_default, custom_hash_default, @@ -81,6 +81,8 @@ static value Val_augeas_t (augeas_t t) CAMLreturn (rv); } +#pragma GCC diagnostic ignored "-Wmissing-prototypes" + /* val create : string -> string option -> flag list -> t */ CAMLprim value ocaml_augeas_create (value rootv, value loadpathv, value flagsv)