xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Thu May 30 07:35:25 PDT 2013


 src/sna/sna_display.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2e11b520bbdb1af7e977db7fdef2d4c41242d56f
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu May 30 15:34:08 2013 +0100

    sna: Compile fix for non-debug builds
    
    sna_display.c: In function 'get_fb':
    sna_display.c:181:3: warning: implicit declaration of function 'assert_scanout' [-Wimplicit-function-declaration]
    sna_display.c:181:3: warning: nested extern declaration of 'assert_scanout' [-Wnested-externs]
    
    * sigh
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 3231ca0..2d59831 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -162,6 +162,8 @@ static void assert_scanout(struct kgem *kgem, struct kgem_bo *bo,
 
 	assert(width == info.width && height == info.height);
 }
+#else
+#define assert_scanout(k, b, w, h)
 #endif
 
 static unsigned get_fb(struct sna *sna, struct kgem_bo *bo,


More information about the xorg-commit mailing list