From: Jim Meyering Date: Thu, 6 Aug 2009 13:25:03 +0000 (+0200) Subject: define ATTRIBUTE_UNUSED X-Git-Tag: 1.0.67~55 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7c68bcde3d34047cfbae45fb26a221a52ab6e3ea;p=libguestfs.git define ATTRIBUTE_UNUSED * daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define. --- diff --git a/daemon/daemon.h b/daemon/daemon.h index 70a2351..a6bbb73 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -213,4 +213,14 @@ extern void reply (xdrproc_t xdrp, char *ret); } \ while (0) +#ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) +# define __attribute__(x) /* empty */ +# endif +#endif + +#ifndef ATTRIBUTE_UNUSED +# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +#endif + #endif /* GUESTFSD_DAEMON_H */