summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-11-24 10:34:48 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-24 18:33:11 +0100
commit55a5ed452a7e1b6c581164e2dad15d528198eb40 (patch)
treeab9d390d3f28c44b96aa572ed0a9b7c253cd4c84 /src
parent2f6586fbdb50ab2319d9fb1ab7fe01624366c69e (diff)
downloadratpoison-55a5ed452a7e1b6c581164e2dad15d528198eb40.zip
Kill gcc unused function warning
The xrandr_rotation_string function is used only if DEBUG is enabled.
Diffstat (limited to 'src')
-rw-r--r--src/xrandr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xrandr.c b/src/xrandr.c
index 2534099..f1f3ef5 100644
--- a/src/xrandr.c
+++ b/src/xrandr.c
@@ -172,6 +172,7 @@ xrandr_output_change (XRROutputChangeNotifyEvent *ev)
XRRFreeScreenResources (res);
}
+#ifdef DEBUG
static const char *
xrandr_rotation_string (Rotation r)
{
@@ -190,6 +191,7 @@ xrandr_rotation_string (Rotation r)
return buf;
}
}
+#endif
static void
xrandr_crtc_change (XRRCrtcChangeNotifyEvent *ev)