diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-18 23:50:57 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-18 23:51:12 -0800 |
commit | db973127f8ee0dfad1e15a577bfa184b5fddc862 (patch) | |
tree | 0c07c9dfc903a2096c5ae4637149eaee80abda15 /xcompmgr.c | |
parent | Make dpy a local variable instead of a global (diff) | |
download | xcman-db973127f8ee0dfad1e15a577bfa184b5fddc862.tar.gz xcman-db973127f8ee0dfad1e15a577bfa184b5fddc862.tar.bz2 xcman-db973127f8ee0dfad1e15a577bfa184b5fddc862.tar.xz |
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>
Diffstat (limited to 'xcompmgr.c')
-rw-r--r-- | xcompmgr.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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), |