Re: [PATCH] getopt: pacify gcc -Wanalyzer-null-dereference

2024-01-17 Thread Paul Eggert
Thanks for fixing that. I had misinterpreted the Coverity message; sorry about that.

Re: [PATCH] getopt: pacify gcc -Wanalyzer-null-dereference

2024-01-17 Thread Bruno Haible
Paul Eggert wrote: > > Paul Eggert wrote: > >> * lib/getopt.c (process_long_option): Simplify logic slightly. > >> This pacifies gcc -flto -Wanalyzer-null-dereference when compiling > >> GNU tar on x86-64 with gcc 13.2.1 20231205 (Red Hat 13.2.1-6). > > This appears to trade a false alarm for anoth

Re: [PATCH] getopt: pacify gcc -Wanalyzer-null-dereference

2023-12-21 Thread Paul Eggert
On 2023-12-18 05:04, Bruno Haible wrote: Paul Eggert wrote: * lib/getopt.c (process_long_option): Simplify logic slightly. This pacifies gcc -flto -Wanalyzer-null-dereference when compiling GNU tar on x86-64 with gcc 13.2.1 20231205 (Red Hat 13.2.1-6). This appears to trade a false alarm for an

Re: [PATCH] getopt: pacify gcc -Wanalyzer-null-dereference

2023-12-18 Thread Bruno Haible
Paul Eggert wrote: > * lib/getopt.c (process_long_option): Simplify logic slightly. > This pacifies gcc -flto -Wanalyzer-null-dereference when compiling > GNU tar on x86-64 with gcc 13.2.1 20231205 (Red Hat 13.2.1-6). This appears to trade a false alarm for another false alarm. Namely, now Coverit

[PATCH] getopt: pacify gcc -Wanalyzer-null-dereference

2023-12-11 Thread Paul Eggert
* lib/getopt.c (process_long_option): Simplify logic slightly. This pacifies gcc -flto -Wanalyzer-null-dereference when compiling GNU tar on x86-64 with gcc 13.2.1 20231205 (Red Hat 13.2.1-6). --- ChangeLog| 7 +++ lib/getopt.c | 29 - 2 files changed, 23 inser