diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-09 11:09:16 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-09 11:41:17 +0100 |
commit | b11bc37684181390fc1400afb44054785104ca15 (patch) | |
tree | aa6847b9ba6ebc3baa280161372114804bbfc146 /src/sna/sna_damage.h | |
parent | 21798a88676e91049917fafd3196dd4374b94226 (diff) |
sna: Simplify the DBG incarnation
It was only ever used in conjunction with HAS_DEBUG_FULL. For debug
purposes it is as easy to redefine DBG locally. By simplifying the DBG
macro we can create it consistently and so reduce the number of compiler
warnings.
Long term, this has to be dynamic. Sigh.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.h')
-rw-r--r-- | src/sna/sna_damage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_damage.h b/src/sna/sna_damage.h index a006adee..21db3e3f 100644 --- a/src/sna/sna_damage.h +++ b/src/sna/sna_damage.h @@ -287,7 +287,7 @@ static inline void sna_damage_destroy(struct sna_damage **damage) void _sna_damage_debug_get_region(struct sna_damage *damage, RegionRec *r); -#if DEBUG_DAMAGE && TEST_DAMAGE +#if HAS_DEBUG_FULL && TEST_DAMAGE void sna_damage_selftest(void); #else static inline void sna_damage_selftest(void) {} |