[Ns-bugs] [Bug 336] optimized build doesn't compile on Ubuntu 8.10
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Wed Sep 10 20:06:34 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=336
------- Comment #2 from mathieu.lacage at sophia.inria.fr 2008-09-10 23:06 -------
(In reply to comment #0)
> In ns-3-dev AND the RC2 tarball.
>
> Platform: x86 Ubuntu 8.10 (Intrepid Ibex) alpha 5, gcc4.3.2
>
> Configured as:
> ./waf configure --enable-nsc -d optimized
>
> Warning generated:
> [223/539] cxx: src/core/random-variable.cc ->
> build/optimized/src/core/random-variable_1.o
> cc1plus: warnings being treated as errors
> ../src/core/random-variable.cc: In static member function ‘static void
> ns3::RandomVariableBase::GetRandomSeeds(uint32_t*)’:
> ../src/core/random-variable.cc:199: error: ignoring return value of ‘ssize_t
> read(int, void*, size_t)’, declared with attribute warn_unused_result
>
> I think this can be fixed by using something other than the low level read
> call.
An even easier way to fix this warning would be to actually check that you have
read what you expected.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list