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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-05-30 15:34:08 +01:00
parent 3a9975729c
commit 2e11b520bb
1 changed files with 2 additions and 0 deletions

View File

@ -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,