Fix a few GCC warnings.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Jun 2017 14:13:09 +0000 (15:13 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Jun 2017 14:13:09 +0000 (15:13 +0100)
augeas-c.c

index 0b535d6..3d3cb27 100644 (file)
@@ -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)