Fix compiler warning about unused variable set by getline()
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 8 Sep 2013 14:41:57 +0000 (10:41 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 8 Sep 2013 22:54:52 +0000 (18:54 -0400)
src/emuconsole.c

index 9d76976..a3f563c 100644 (file)
@@ -255,7 +255,6 @@ console_main(void)
        while (!QuitRequest) {
                int slen;
                size_t len = 0;
-               ssize_t bytes_read;
                char Command[256];
                char Args[256];
                char Parameter1[256];
@@ -265,7 +264,7 @@ console_main(void)
                Parameter2[0] = '\0';
 
                printf(prompt);
-               bytes_read = getline(&line, &len, stdin);
+               (void) getline(&line, &len, stdin);
                Capitalize(line);
                RemoveSpaces(line);