From: mquinson Date: Tue, 25 Apr 2006 12:43:39 +0000 (+0000) Subject: the gcc attribute 'unused' made portable X-Git-Tag: v3.3~3171 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fe827cdb7d9efc86b749e0d67671d93f94c44f8e?ds=sidebyside the gcc attribute 'unused' made portable git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2187 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/misc.h b/include/xbt/misc.h index a3a9e7ffe6..2889ea78c6 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -21,12 +21,14 @@ # define _XBT_GNUC_FORMAT( arg_idx ) \ __attribute__((__format_arg__ (arg_idx))) # define _XBT_GNUC_NORETURN __attribute__((__noreturn__)) +# define _XBT_GNUC_UNUSED __attribute__((unused)) #else /* !__GNUC__ */ # define _XBT_GNUC_PRINTF( format_idx, arg_idx ) # define _XBT_GNUC_SCANF( format_idx, arg_idx ) # define _XBT_GNUC_FORMAT( arg_idx ) # define _XBT_GNUC_NORETURN +# define _XBT_GNUC_UNUSED #endif /* !__GNUC__ */