mirror of
https://github.com/troglobit/editline.git
synced 2025-09-15 15:58:11 +08:00
Fix for() loop; "statement with no effect" warning from GCC
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -358,7 +358,7 @@ static void reposition(int key)
|
||||
tty_puts(rl_prompt);
|
||||
}
|
||||
|
||||
for (i; i < rl_point; i++) {
|
||||
for (; i < rl_point; i++) {
|
||||
tty_show(rl_line_buffer[i]);
|
||||
|
||||
/* move to the next line */
|
||||
|
Reference in New Issue
Block a user