summaryrefslogtreecommitdiff
path: root/xkbparse.y
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 10:02:13 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-03 11:02:11 -0800
commit3e486c4578f3f6a81fc0f9afba6551dfa8c7b63b (patch)
tree9530291dc25bd3f137778129297a32e76ceb8bb8 /xkbparse.y
parenta3bbf780252e55bb1dcab717289ef09e00d11223 (diff)
downloadxorg-app-xkbcomp-3e486c4578f3f6a81fc0f9afba6551dfa8c7b63b.tar.gz
Only build debug infrastructure if DEBUG is defined
It's only used when DEBUG is defined, so don't build it when we're not using it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xkbparse.y')
-rw-r--r--xkbparse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/xkbparse.y b/xkbparse.y
index 88df242..5253e48 100644
--- a/xkbparse.y
+++ b/xkbparse.y
@@ -91,15 +91,14 @@
%{
#ifdef DEBUG
#define YYDEBUG 1
-#endif
#define DEBUG_VAR parseDebug
+unsigned int parseDebug;
+#endif
#include "parseutils.h"
#include <X11/keysym.h>
#include <X11/extensions/XKBgeom.h>
#include <stdlib.h>
-unsigned int parseDebug;
-
%}
%right EQUALS
%left PLUS MINUS