From 5cdadc3eb157b336812679f4f733386cfbf02d34 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 19 May 2017 11:55:37 +0200
Subject: [PATCH] tweaks: avoid an unused-variable warning when using
 --disable-comment

---
 src/text.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/text.c b/src/text.c
index 7fc58208..10415d7a 100644
--- a/src/text.c
+++ b/src/text.c
@@ -1140,7 +1140,9 @@ bool execute_command(const char *command)
 void discard_until(const undo *thisitem, openfilestruct *thefile)
 {
     undo *dropit = thefile->undotop;
+#ifdef ENABLE_COMMENT
     undo_group *group;
+#endif
 
     while (dropit != NULL && dropit != thisitem) {
 	thefile->undotop = dropit->next;
-- 
GitLab