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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mark Kettenis <kettenis@xxxxxxxxxxx>

Signed-off-by: Mark Kettenis <kettenis@xxxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux