From 66418cc99cfd360e303efcdf74a9ee31d435ff15 Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Thu, 12 Jun 2008 14:04:41 +0800 Subject: [PATCH] Fix compiler warning when disable xvmc config (cherry picked from commit df0bbdc7cbb6ff357a81ed28d12e56c9c7d643f7) --- src/i830_memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i830_memory.c b/src/i830_memory.c index 02b16794..6f7d7cc0 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -2023,6 +2023,7 @@ I830CheckAvailableMemory(ScrnInfoPtr pScrn) return maxPages * 4; } +#ifdef INTEL_XVMC /* * Allocate memory for MC compensation */ @@ -2044,3 +2045,4 @@ Bool i830_allocate_xvmc_buffer(ScrnInfoPtr pScrn, const char *name, return TRUE; } +#endif