- UNUSED macro wasn't throwing an error with GCC if a var become used.
[blender.git] / source / blender / blenkernel / BKE_utildefines.h
index 7450e31e263ff4d3f93a4e4c7fce8edbb30ec5f8..33ab6c36b74c875cdfff89f14f1adb47cbb00ef0 100644 (file)
 #define STRINGIFY_ARG(x) #x
 #define STRINGIFY(x) STRINGIFY_ARG(x)
 
+
+
 #ifdef __GNUC__
-#  define UNUSED(x) x __attribute__((__unused__))
+#  define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
 #else
 #  define UNUSED(x) x
 #endif