[HECnet] New bridge.c feedback

Marc Chametzky marc at bluevine.net
Thu Jun 7 15:32:39 PDT 2012


cc-1171 cc: WARNING File = bridge.c, Line = 684
    The indicated expression has no effect.

        if (port == 0) port == DPORT;
                                      ^

Blech! Well, DPORT is by default set to 0. See the documentation of the define in the sources... This one will stay.
I saw your second message about putting this in a conditional, but out of curiosity, why wouldn't you want to fix it? You don't have an assignment statement here, so if you do define DPORT, it won't take effect the way you want with the code like this.

--Marc



More information about the Hecnet-list mailing list