commit 5cdadc3eb157b336812679f4f733386cfbf02d34
parent 8f89e23adbb6c9bf640e2d789c0dfa1254fa81be
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 19 May 2017 11:55:37 +0200
tweaks: avoid an unused-variable warning when using --disable-comment
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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;