This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Thanks for "warning: statement with no effect"


I just wrote a bunch of
if (option == "4_5") hp_code_rate == FEC_4_5;
lines. gcc 3.2 told me
"warning: statement with no effect"
I didn't see at first why, looked over the code a few times, until I noticed that I wrote "==" instead of "=". I would have neede ages to track this down. Thanks for this warning, it probably saved me a lot of hairs.


:-)
Ben

(P.S. I'm not subscribed to the list, just wanted to say thanks.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]