diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 718486d82d5741abfe7118db9a4488ce5f38779d_eHNsdHByb2MveHNsdHByb2MuYw==..c4d704adb9ea96179749d8864da1292a490209fb_eHNsdHByb2MveHNsdHByb2MuYw== 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -55,4 +55,5 @@
 #include <sys/timeb.h>
 #endif
 
+#ifdef LIBXML_DEBUG_ENABLED
 static int debug = 0;
@@ -58,4 +59,5 @@
 static int debug = 0;
+#endif
 static int repeat = 0;
 static int timing = 0;
 static int dumpextensions = 0;