summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2015-03-07 14:07:10 -0800
committerVinson Lee <vlee@freedesktop.org>2015-03-09 17:28:39 -0700
commit5f759836ad75360a2f4581083043a86f7a8c1e09 (patch)
treef0a41101eaceba2f48cc9c2d188156b6764cbb93 /src/util
parent7aba4ab1f355ea1a5870b3deb4b295565132dfc5 (diff)
downloadexternal_mesa3d-5f759836ad75360a2f4581083043a86f7a8c1e09.zip
external_mesa3d-5f759836ad75360a2f4581083043a86f7a8c1e09.tar.gz
external_mesa3d-5f759836ad75360a2f4581083043a86f7a8c1e09.tar.bz2
Add macro for unused function attribute.
Suggested-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/macros.h b/src/util/macros.h
index 63daba3..6c7bda7 100644
--- a/src/util/macros.h
+++ b/src/util/macros.h
@@ -176,5 +176,11 @@ do { \
# endif
#endif
+#ifdef HAVE_FUNC_ATTRIBUTE_UNUSED
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
+
#endif /* UTIL_MACROS_H */