Bug 1119 - ns2-mobility-helper.cc:402: error: ignoring return value
ns2-mobility-helper.cc:402: error: ignoring return value
Status: CLOSED FIXED
Product: ns-3
Classification: Unclassified
Component: mobility models
ns-3-dev
All All
: P5 trivial
Assigned To: Pavel Boyko
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-01 17:21 UTC by John Abraham
Modified: 2012-03-17 19:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Abraham 2011-05-01 17:21:18 UTC
with ./waf -d optimized configure; ./waf on Ubuntu64 (10.04) with 
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 

we get 

cc1plus: warnings being treated as errors
../src/mobility/helper/ns2-mobility-helper.cc: In function ‘bool ns3::IsNumber(const std::string&)’:
../src/mobility/helper/ns2-mobility-helper.cc:402: error: ignoring return value of ‘double strtod(const char*, char**)’, declared with attribute warn_unused_result
Waf: Leaving directory `/home/john/ns-3-bugtest/ns-3-allinone/ns-3-dev/build'
Build failed:  -> task failed (err #1): 
	{task: cxx ns2-mobility-helper.cc -> ns2-mobility-helper_1.o}