summaryrefslogtreecommitdiff
path: root/scripts/kconfig/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r--scripts/kconfig/conf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 3e1057f885c6..b28d74c323fa 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -101,7 +101,8 @@ static int conf_askvalue(struct symbol *sym, const char *def)
check_stdin();
case ask_all:
fflush(stdout);
- fgets(line, 128, stdin);
+ /* JVS: check return value to avoid compiler warning */
+ if (fgets(line, 128, stdin) == NULL) ;
return 1;
default:
break;
@@ -303,7 +304,8 @@ static int conf_choice(struct menu *menu)
check_stdin();
case ask_all:
fflush(stdout);
- fgets(line, 128, stdin);
+ /* JVS: check return value to avoid compiler warning */
+ if (fgets(line, 128, stdin) == NULL) ;
strip(line);
if (line[0] == '?') {
printf("\n%s\n", get_help(menu));