From ef9e800b1e5a6ee676a627296fdfb9c655aac8a4 Mon Sep 17 00:00:00 2001 From: AliceLR Date: Tue, 22 Jun 2021 21:16:24 -0600 Subject: [PATCH] Silence annoying GCC 11 warnings. --- src/read_config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/read_config.c b/src/read_config.c index 83c16be..ad3af69 100644 --- a/src/read_config.c +++ b/src/read_config.c @@ -104,11 +104,13 @@ int read_config(struct options *o) #define getval_yn(x,w,y) { \ if (!strcmp(var,x)) { if (get_yesno (val)) w |= (y); \ - else w &= ~(y); continue; } } + else w &= ~(y); \ + continue; } } #define getval_tristate(x,w) { \ if (!strcmp(var,x)) { if (get_yesno (val)) w = 1; \ - else w = -1; continue; } } + else w = -1; \ + continue; } } #define getval_no(x,y) { \ if (!strcmp(var,x)) { y = atoi (val); continue; } }