NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/53023: config(1) behavior change with new gcc6



On Feb 13,  1:15pm, uwe%stderr.spb.ru@localhost (Valery Ushakov) wrote:
-- Subject: Re: toolchain/53023: config(1) behavior change with new gcc6

|  That variable IS generated with both new and old configs, but the new
|  gcc fails with (and you have trimmed the relevant part):
|  
|  ioconf.c:436:33: error: 'dbcoolcf_iattrdata' defined but not used [-Werror=unused-const-variable=]
|  
|  which is new in gcc6, i guess.  A bit of background:
|  
|    https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00847.html
|  

Yes, uwe is correct. This is not a gcc bug; it is a new warning. The new
gcc ioconf.c is the same as the old gcc ioconf.c in that respect. Both
have the iattr data for dbcool, but the gcc correctly warns because it
is unused. It get's created because of the extra attribute that you've
commented out.


Home | Main Index | Thread Index | Old Index