]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Added ATTR_PURE macro, which expands to pure attribute if available.
authorTimo Sirainen <tss@iki.fi>
Fri, 20 Jun 2008 07:41:27 +0000 (10:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 20 Jun 2008 07:41:27 +0000 (10:41 +0300)
--HG--
branch : HEAD

src/lib/macros.h

index d3765ba5bdb836a632066e3f4f16f0cd682364a5..055ce7573df2e7c444b8e72041558b94a99c9498 100644 (file)
 #  define ATTR_UNUSED __attribute__((unused))
 #  define ATTR_NORETURN __attribute__((noreturn))
 #  define ATTR_CONST __attribute__((const))
+#  define ATTR_PURE __attribute__((pure))
 #else
 #  define ATTR_FORMAT(format_idx, arg_idx)
 #  define ATTR_FORMAT_ARG(arg_idx)
 #  define ATTR_UNUSED
 #  define ATTR_NORETURN
 #  define ATTR_CONST
-#  define ATTR_UNUSED
+#  define ATTR_PURE
 #endif
 #if __GNUC__ > 2
 #  define ATTR_MALLOC __attribute__((malloc))