[Ns-bugs] [Bug 1372] [LLVM] error: using the result of an assignment as a condition without parentheses
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Wed Feb 22 03:34:55 PST 2012
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1372
--- Comment #1 from Gustavo J. A. M. Carneiro <gjcarneiro at gmail.com> 2012-02-22 06:34:55 EST ---
More of the same:
../src/applications/model/ping6.cc:234:17: error: using the result of an
assignment as a condition without parentheses
[-Werror,-Wparentheses]
while (packet = socket->RecvFrom (from))
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../src/applications/model/ping6.cc:234:17: note: use '==' to turn this
assignment into an equality comparison
while (packet = socket->RecvFrom (from))
^
==
../src/applications/model/ping6.cc:234:17: note: place parentheses around the
assignment to silence this warning
while (packet = socket->RecvFrom (from))
^
( )
1 error generated.
and:
../src/applications/model/packet-sink.cc:171:17: error: using the result of an
assignment as a condition without parentheses
[-Werror,-Wparentheses]
while (packet = socket->RecvFrom (from))
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../src/applications/model/packet-sink.cc:171:17: note: use '==' to turn this
assignment into an equality comparison
while (packet = socket->RecvFrom (from))
^
==
../src/applications/model/packet-sink.cc:171:17: note: place parentheses around
the assignment to silence this warning
while (packet = socket->RecvFrom (from))
^
( )
1 error generated.
--
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list