From: Paul Eggert Date: Sat, 27 Jul 2024 07:26:15 +0000 (-0700) Subject: Pacify gcc 14 -Wanalyzer-null-argument X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fa1fd075120e0dddb412da11388488648dc6d70;p=thirdparty%2Ftar.git Pacify gcc 14 -Wanalyzer-null-argument * src/tar.c (optloc_eq): Add another ‘assume’. --- diff --git a/src/tar.c b/src/tar.c index d4067d56..0c31f156 100644 --- a/src/tar.c +++ b/src/tar.c @@ -1053,6 +1053,7 @@ optloc_eq (struct option_locus *a, struct option_locus *b) return 0; if (a->source == OPTS_COMMAND_LINE) return 1; + assume (a->name); return strcmp (a->name, b->name) == 0; }