[Bug c++/44108] [4.6 Regression] -Wunused-but-set-variable does not consider array sizing use of a const variable

dodji at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon May 17 13:54:00 GMT 2010



------- Comment #4 from dodji at gcc dot gnu dot org  2010-05-17 13:54 -------
Created an attachment (id=20681)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20681&action=view)
Don't warn for integral constants

Jakub, this one line patch implements the first idea which is to not warn for
integral constants, as far as Wunused_but_set_variable is concerned.

I have tested it only for the reported error case. I haven't regtested it yet.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44108



More information about the Gcc-bugs mailing list