[Intel-gfx] [PATCH xf86-video-intel] sna: Fix compilation with older GCC

Mark Kettenis mark.kettenis at xs4all.nl
Sun Aug 4 13:38:10 CEST 2013


From: Mark Kettenis <kettenis at openbsd.org>

Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
---
 src/sna/compiler.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index 2f5dfc7..28d3351 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -67,6 +67,8 @@
 
 #if HAS_GCC(4, 6) && defined(__OPTIMIZE__)
 #define fast __attribute__((optimize("Ofast")))
+#else
+#define fast
 #endif
 
 #if HAS_GCC(4, 6) && defined(__OPTIMIZE__)
-- 
1.8.3.3




More information about the Intel-gfx mailing list