@@ -77,6 +77,7 @@ static void check_stdin(void)
static int conf_askvalue(struct symbol *sym, const char *def)
{
+ char *dummy;
enum symbol_type type = sym_get_type(sym);
if (!sym_has_value(sym))
@@ -102,7 +103,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
check_stdin();
case ask_all:
fflush(stdout);
- fgets(line, 128, stdin);
+ dummy = fgets(line, 128, stdin);
return 1;
default:
break;
@@ -230,6 +231,7 @@ static int conf_choice(struct menu *menu)
struct menu *child;
int type;
bool is_new;
+ char *dummy;
sym = menu->sym;
type = sym_get_type(sym);
@@ -304,7 +306,7 @@ static int conf_choice(struct menu *menu)
check_stdin();
case ask_all:
fflush(stdout);
- fgets(line, 128, stdin);
+ dummy = fgets(line, 128, stdin);
strip(line);
if (line[0] == '?') {
print_help(menu);
@@ -408,6 +408,7 @@ int conf_write(const char *name)
time_t now;
int use_timestamp = 1;
char *env;
+ size_t dummy;
dirname[0] = 0;
if (name && name[0]) {
@@ -505,7 +506,7 @@ int conf_write(const char *name)
while (1) {
l = strcspn(str, "\"\\");
if (l) {
- fwrite(str, l, 1, out);
+ dummy = fwrite(str, l, 1, out);
str += l;
}
if (!*str)
@@ -680,6 +681,7 @@ int conf_write_autoconf(void)
FILE *out, *tristate, *out_h;
time_t now;
int i, l;
+ size_t dummy;
sym_clear_all_valid();
@@ -756,8 +758,8 @@ int conf_write_autoconf(void)
while (1) {
l = strcspn(str, "\"\\");
if (l) {
- fwrite(str, l, 1, out);
- fwrite(str, l, 1, out_h);
+ dummy = fwrite(str, l, 1, out);
+ dummy = fwrite(str, l, 1, out_h);
str += l;
}
if (!*str)
@@ -1087,7 +1087,8 @@ void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *
static void expr_print_file_helper(void *data, struct symbol *sym, const char *str)
{
- fwrite(str, strlen(str), 1, data);
+ size_t dummy;
+ dummy = fwrite(str, strlen(str), 1, data);
}
void expr_fprint(struct expr *e, FILE *out)