X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs_c.h;h=219dc2fef116105547461b88bf7ab4cbd08bf88d;hp=29da05323dce19103aa53e2ffb53a7cd57eed6ad;hb=327442119ff1f1791a0682928e59b0c4b4752007;hpb=1079f74704a06c06996e547fdecf20a8f92799c6 diff --git a/ocaml/guestfs_c.h b/ocaml/guestfs_c.h index 29da053..219dc2f 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 */