summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-18 23:50:57 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-18 23:51:12 -0800
commitdb973127f8ee0dfad1e15a577bfa184b5fddc862 (patch)
tree0c07c9dfc903a2096c5ae4637149eaee80abda15
parent2d23afb54eb63f7511b16ecb17e5b90f841b2966 (diff)
Only define shape_kind() function if DEBUG_SHAPE is true
Fixes gcc warning: xcompmgr.c:1762:1: warning: ‘shape_kind’ defined but not used Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xcompmgr.c7
1 files 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),