From db973127f8ee0dfad1e15a577bfa184b5fddc862 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 18 Nov 2011 23:50:57 -0800 Subject: Only define shape_kind() function if DEBUG_SHAPE is true MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes gcc warning: xcompmgr.c:1762:1: warning: ‘shape_kind’ defined but not used Signed-off-by: Alan Coopersmith --- xcompmgr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xcompmgr.c b/xcompmgr.c index 6d2ef44..53e7d0d 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -159,7 +159,8 @@ static conv *gaussianMap; #define TRANS_OPACITY 0.75 #define DEBUG_REPAINT 0 -#define DEBUG_EVENTS 0 +#define DEBUG_EVENTS 0 +#define DEBUG_SHAPE 0 #define MONITOR_REPAINT 0 #define SHADOWS 1 @@ -1758,6 +1759,7 @@ damage_win (Display *dpy, XDamageNotifyEvent *de) repair_win (dpy, w); } +#if DEBUG_SHAPE static const char * shape_kind(int kind) { @@ -1775,6 +1777,7 @@ shape_kind(int kind) return buf; } } +#endif static void shape_win (Display *dpy, XShapeEvent *se) @@ -1789,7 +1792,7 @@ shape_win (Display *dpy, XShapeEvent *se) XserverRegion region0; XserverRegion region1; -#if 0 +#if DEBUG_SHAPE printf("win 0x%lx %s:%s %ux%u+%d+%d\n", (unsigned long) se->window, shape_kind(se->kind), -- cgit v1.2.3-70-g09d2