base: unused, noinline attribs
authorMarko Kreen <markokr@gmail.com>
Mon, 20 Apr 2009 03:56:21 +0000 (06:56 +0300)
committerMarko Kreen <markokr@gmail.com>
Mon, 20 Apr 2009 07:00:28 +0000 (10:00 +0300)
usual/base.h

index f9f27b0a54e6c29d43d5045b3c427d4cf208ab66..fb6be69cbe26114bf3ceb460892a32fb36138137 100644 (file)
@@ -59,6 +59,8 @@
 #define _DEPRECATED             __attribute__((deprecated))
 #define _PRINTF(fmtpos, argpos) __attribute__((format(printf, fmtpos, argpos)))
 #define _MALLOC                 __attribute__((malloc))
+#define _UNUSED                 __attribute__((unused))
+#define _NOINLINE               __attribute__((noinline))
 
 /* compiler hints - those do not seem to work well */
 #define unlikely(x) __builtin_expect(!!(x), 0)
@@ -70,6 +72,8 @@
 #define _DEPRECATED
 #define _PRINTF(x,y)
 #define _MALLOC
+#define _UNUSED
+#define _NOINLINE
 #define unlikely(x) x
 #define likely(x) x