Closing bug #25000, Daniel.
diff --git a/xmllint.c b/xmllint.c
index bfa6010..190632f 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -655,11 +655,13 @@
 	    xmlGetWarningsDefaultValue = 1;
 	    xmlPedanticParserDefault(1);
         }
+#ifdef LIBXML_DEBUG_ENABLED
 	else if ((!strcmp(argv[i], "-debugent")) ||
 		 (!strcmp(argv[i], "--debugent"))) {
 	    debugent++;
 	    xmlParserDebugEntities = 1;
 	} 
+#endif
 	else if ((!strcmp(argv[i], "-encode")) ||
 	         (!strcmp(argv[i], "--encode"))) {
 	    i++;