On 2023-09-04 03:07, Bruno Haible wrote:

Is that use of -Wextra an experiment, or do you want to use it always?

Oh, it was just an experiment.

I'm asking because some the warnings that it enables are undesired, IMO,

Quite right.

I expect that many of the warnings you found are false alarms, and that it's low priority to look into this. I adjusted test code for the "xxx is unused" warnings only because it was easy in the context of coreutils and the warnings I found by the experiment were arguably useful. I didn't look for all instances of those warnings in gnulib, just the ones that cropped up with "make CFLAGS='-O2 -Wall -Wextra'" in coreutils (which appends some further '-Wno-...' flags before invoking GCC).

Reply via email to