git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compile rpcgen-generated files with -fno-strict-aliasing
[libguestfs.git]
/
ocaml
/
guestfs_c.h
diff --git
a/ocaml/guestfs_c.h
b/ocaml/guestfs_c.h
index
29da053
..
219dc2f
100644
(file)
--- 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);
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 */
#endif /* GUESTFS_OCAML_C_H */