This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Thanks for "warning: statement with no effect"
- From: Ben Bucksch <linux dot news at bucksch dot org>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 26 Apr 2003 00:11:12 +0200
- Subject: 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.)