warning on assignment within conditional

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

 



Is there a warning option that can catch the common blunder

if (x = y) ...

when assignment was not intended?  I can't find one in our documentation.

By the way, I know it's usual to state the version of gcc being used when
asking almost any question, but I don't know what version it is.  How can I
find out the version?  It's for the iwmmxt_le architecture.

Thanks for your attention.

John Boncek
-- 
View this message in context: http://old.nabble.com/warning-on-assignment-within-conditional-tp27536657p27536657.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux