tweaks: avoid an unused-variable warning when using --disable-comment

master
Benno Schulenberg 2017-05-19 11:55:37 +02:00
parent 8f89e23adb
commit 5cdadc3eb1
1 changed files with 2 additions and 0 deletions

View File

@ -1140,7 +1140,9 @@ bool execute_command(const char *command)
void discard_until(const undo *thisitem, openfilestruct *thefile) void discard_until(const undo *thisitem, openfilestruct *thefile)
{ {
undo *dropit = thefile->undotop; undo *dropit = thefile->undotop;
#ifdef ENABLE_COMMENT
undo_group *group; undo_group *group;
#endif
while (dropit != NULL && dropit != thisitem) { while (dropit != NULL && dropit != thisitem) {
thefile->undotop = dropit->next; thefile->undotop = dropit->next;