From 476deb7f73ddd2a0b7653890448dbc10ea6aa6b9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 26 Jan 2022 10:21:40 -0800 Subject: maint: pacify --enable-gcc-warnings * src/symtab.c (lookup_symbol): Reword slightly, to work around bug in GCC 11.2.0 when --enable-gcc-warnings. --- src/symtab.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/symtab.c b/src/symtab.c index e3cb319a..742f192b 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -277,8 +277,10 @@ lookup_symbol (const char *name, symbol_lookup mode) definition is still in use, let the caller free the memory after it is done with the symbol. */ - if (cmp != 0 || sym == NULL) + if (cmp != 0) return NULL; + if (sym == NULL) + return NULL; { bool traced = false; symbol *next; -- cgit v1.2.1