← Commit list

9a296fbea

Cristian Ionescu-Idbohrn
Cristian Ionescu-Idbohrn
2011-05-16
FAILED Duration: 309s

Subject

vi.c: remove warning: variable 'sp' set but not used

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+4 -0
@@ -1688,12 +1688,16 @@ static char *char_insert(char *p, char c) // insert the char c at 'p'
p = text_hole_delete(p, p); // shrink buffer 1 char
}
} else {
+#if ENABLE_FEATURE_VI_SETOPTS
// insert a char into text[]
char *sp; // "save p"
+#endif
if (c == 13)
c = '\n'; // translate \r to \n
+#if ENABLE_FEATURE_VI_SETOPTS
sp = p; // remember addr of insert
+#endif
p += 1 + stupid_insert(p, c); // insert the char
#if ENABLE_FEATURE_VI_SETOPTS
if (showmatch && strchr(")]}", *sp) != NULL) {