c++/10416: 'unused variable' warning ignores ctor/dtor side-effects

bangerth@dealii.org bangerth@dealii.org
Wed Apr 16 23:15:00 GMT 2003


Synopsis: 'unused variable' warning ignores ctor/dtor side-effects

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Wed Apr 16 23:15:53 2003
State-Changed-Why:
    The compiler cannot know what you want. If you don't like
    the warning, switch it off, or follow what the manual
    says:
    
    @item -Wunused-variable
    @opindex Wunused-variable
    Warn whenever a local variable or non-constant static variable is unused
    aside from its declaration
    
    To suppress this warning use the @samp{unused} attribute
    (@pxref{Variable Attributes}).
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10416



More information about the Gcc-bugs mailing list