aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/common
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-10-07 09:52:19 -0500
committerTim Rowley <[email protected]>2016-10-11 11:22:04 -0500
commiteaec263427631b3aa3a86f6287f3144381866510 (patch)
treeb273519964097ae3f6456ab75907ba115a0356d9 /src/gallium/drivers/swr/rasterizer/common
parent12e6f4c87970e57d2b92b1cc81490037c40e8186 (diff)
swr: [rasterizer] eliminate unused label warnings on gcc
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index f175a8a19e5..0671c5a56ee 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -249,4 +249,10 @@ typedef MEGABYTE GIGABYTE[1024];
#include "common/swr_assert.h"
+#ifdef __GNUC__
+#define ATTR_UNUSED __attribute__((unused))
+#else
+#define ATTR_UNUSED
+#endif
+
#endif//__SWR_OS_H__