From 581d60d73af5ae616f5c4f193de73ac56b257888 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 8 Sep 2013 10:41:57 -0400 Subject: [PATCH] Fix compiler warning about unused variable set by getline() --- src/emuconsole.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.20.1