summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs_c.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-23 18:12:26 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-23 18:25:18 +0000
commit8d3e97679a698386980bd1e5e5833542412a56f6 (patch)
tree8fb7a250dcfd4a43097eaaac38d805b326bd9043 /ocaml/guestfs_c.h
parent4220b7a6411f1eeecc616e37adaa5b2d2fe9aec1 (diff)
downloadlibguestfs-8d3e97679a698386980bd1e5e5833542412a56f6.tar.gz
libguestfs-8d3e97679a698386980bd1e5e5833542412a56f6.tar.xz
libguestfs-8d3e97679a698386980bd1e5e5833542412a56f6.zip
ocaml: Fix some unused parameter warnings in OCaml bindings.
Diffstat (limited to 'ocaml/guestfs_c.h')
-rw-r--r--ocaml/guestfs_c.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ocaml/guestfs_c.h b/ocaml/guestfs_c.h
index 29da0532..219dc2fe 100644
--- a/ocaml/guestfs_c.h
+++ b/ocaml/guestfs_c.h
@@ -29,4 +29,14 @@ extern void ocaml_guestfs_raise_closed (const char *func)
extern char **ocaml_guestfs_strings_val (guestfs_h *g, value sv);
extern void ocaml_guestfs_free_strings (char **r);
+# ifdef __GNUC__
+# ifndef ATTRIBUTE_UNUSED
+# define ATTRIBUTE_UNUSED __attribute__((__unused__))
+# endif
+#else
+# ifndef ATTRIBUTE_UNUSED
+# define ATTRIBUTE_UNUSED
+# endif
+#endif
+
#endif /* GUESTFS_OCAML_C_H */