GCC 4.6

bearophile bearophileHUGS at lycos.com
Sat Mar 26 18:28:52 PDT 2011


Walter:

> D already does this.
> and this.

But not this:

>New -Wunused-but-set-variable and -Wunused-but-set-parameter warnings were added for C, C++, Objective-C and Objective-C++. These warnings diagnose variables respective parameters which are only set in the code and never otherwise used. Usually such variables are useless and often even the value assigned to them is computed needlessly, sometimes expensively. The -Wunused-but-set-variable warning is enabled by default by -Wall flag and -Wunused-but-set-parameter by -Wall -Wextra flags.<

Bye,
bearophile


More information about the Digitalmars-d mailing list