Removing the -W from the CFLAGS in advance
Submitted by Daichi Kawahata
Assigned to Benedikt Meurer
Description
User-Agent: Mozilla/5.0 (X11; U; IRIX64 IP35; ja; rv:1.8.1.3) Gecko/R-A-C Firefox/2.0.0.3 Build Identifier:
Hi Benedikt,
It's a long standing cosmetic problem for me...
That is;
$ echo $CFLAGS -O2 -g -W -Wall -Wformat=2 -mips4
As you see, I've put -W to my CFLAGS which brings a compilation failure when it's used with -Werror.
Is it possible to check whether -W is there in CFLAGS in xdt-autogen, if it exists, then remove/override it?
Reproducible: Always
Steps to Reproduce:
- ./autogen.sh
- make
Version: 4.6.0