diff options
author | Alon Levy <alevy@redhat.com> | 2011-07-22 01:27:26 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-22 02:07:38 +0300 |
commit | 2a206fb4c4fdc7bb09e0b1e6cd6c4111c9268095 (patch) | |
tree | 207437ef11e23ddaa1ad9fb02b281fdf18571f58 | |
parent | ce5507756e87a73bc6275ac275073932cd122583 (diff) |
qxl_surface: fix unused print_region warning
introduced a define for enableing it, DEBUG_REGIONS.
-rw-r--r-- | src/qxl_surface.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c index bf91483..f8dbebc 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -1240,6 +1240,7 @@ qxl_surface_cache_replace_all (surface_cache_t *cache, void *data) } +#ifdef DEBUG_REGIONS static void print_region (const char *header, RegionPtr pRegion) { @@ -1262,6 +1263,7 @@ print_region (const char *header, RegionPtr pRegion) pbox++; } } +#endif // DEBUG_REGIONS /* solid */ Bool @@ -1273,7 +1275,7 @@ qxl_surface_prepare_solid (qxl_surface_t *destination, ErrorF (" solid not in vmem\n"); } -#if 0 +#ifdef DEBUG_REGIONS print_region ("prepare solid", &(destination->access_region)); #endif @@ -1328,7 +1330,7 @@ qxl_surface_prepare_copy (qxl_surface_t *dest, return FALSE; #endif -#if 0 +#ifdef DEBUG_REGIONS print_region ("prepare copy src", &(source->access_region)); print_region ("prepare copy dest", &(dest->access_region)); #endif @@ -1348,7 +1350,7 @@ qxl_surface_copy (qxl_surface_t *dest, struct QXLDrawable *drawable; struct QXLRect qrect; -#if 0 +#ifdef DEBUG_REGIONS print_region (" copy src", &(dest->u.copy_src->access_region)); print_region (" copy dest", &(dest->access_region)); #endif |