summaryrefslogtreecommitdiff
path: root/misc.c
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 /misc.c
parenta3bbf780252e55bb1dcab717289ef09e00d11223 (diff)
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 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index b41a64c..24ad0ed 100644
--- a/misc.c
+++ b/misc.c
@@ -73,8 +73,10 @@ ProcessIncludeFile(IncludeStmt * stmt,
strcpy(oldFile, scanFile);
oldLine = lineNum;
setScanState(stmt->file, 1);
+#ifdef DEBUG
if (debugFlags & 2)
INFO("About to parse include file %s\n", stmt->file);
+#endif
/* parse the file */
if ((XKBParseFile(file, &rtrn) == 0) || (rtrn == NULL))
{