Re: RFR: 8339120: Use more fine-granular gcc unused warnings [v2]

2024-08-28 Thread Magnus Ihse Bursie
On Wed, 28 Aug 2024 11:26:01 GMT, Magnus Ihse Bursie wrote: >> make/autoconf/flags-cflags.m4 line 239: >> >>> 237: # Additional warnings that are not activated by -Wall and -Wextra >>> 238: WARNINGS_ENABLE_ADDITIONAL="-Wpointer-arith -Wreturn-type >>> -Wsign-compare \ >>> 239:

Re: RFR: 8339120: Use more fine-granular gcc unused warnings [v2]

2024-08-28 Thread Magnus Ihse Bursie
> Currently, we issue -Wno-unused for all files in gcc, which is a rather big > sledgehammer to get rid of some warnings that proliferate in a few areas of > the build. > > We should instead leave -Wunused turned on (as done by -Wall) and use a much > more fine-grained approach to disabling spe