diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-01-26 10:21:40 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-01-26 10:28:48 -0800 |
commit | 476deb7f73ddd2a0b7653890448dbc10ea6aa6b9 (patch) | |
tree | a6cf062bcb3cf802af3b2ec52d00e5a716accf3c | |
parent | f701441efa98435784466f26b1f4269e74527f99 (diff) | |
download | m4-476deb7f73ddd2a0b7653890448dbc10ea6aa6b9.tar.gz |
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.
-rw-r--r-- | src/symtab.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |