[Issue 3960] Unused variable warning

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 27 08:18:41 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3960



--- Comment #6 from bearophile_hugs at eml.cc 2011-03-27 08:15:13 PDT ---
Two new good related flags in GCC 4.6:

>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.<


Some discussions in this thread:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=132909

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list