[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:36:00 PST 2012
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1372
--- Comment #2 from Gustavo J. A. M. Carneiro <gjcarneiro at gmail.com> 2012-02-22 06:36:00 EST ---
../src/applications/model/radvd.cc:238:17: error: using the result of an
assignment as a condition without parentheses
[-Werror,-Wparentheses]
while (packet = socket->RecvFrom (from))
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../src/applications/model/radvd.cc:238:17: note: use '==' to turn this
assignment into an equality comparison
while (packet = socket->RecvFrom (from))
^
==
../src/applications/model/radvd.cc:238: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