From: Hugo Villeneuve Date: Sun, 8 Sep 2013 14:41:57 +0000 (-0400) Subject: Fix compiler warning about unused variable set by getline() X-Git-Tag: v1.1.2~2 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=581d60d73af5ae616f5c4f193de73ac56b257888;p=emu8051.git Fix compiler warning about unused variable set by getline() --- diff --git a/src/emuconsole.c b/src/emuconsole.c index 9d76976..a3f563c 100644 --- a/src/emuconsole.c +++ b/src/emuconsole.c @@ -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);