Bug 1158 - opt build olsr variable ‘now’ set but not used
opt build olsr variable ‘now’ set but not used
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: olsr
ns-3-dev
All All
: P5 trivial
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-16 14:08 UTC by John Abraham
Modified: 2011-08-09 19:16 UTC (History)
2 users (show)

See Also:


Attachments
patch (543 bytes, patch)
2011-05-16 14:11 UTC, John Abraham
Details | Diff
Fix (978 bytes, application/octet-stream)
2011-05-16 14:13 UTC, Lalith Suresh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Abraham 2011-05-16 14:08:07 UTC
seen on optimized builds with g++ 4.6.0

Waf: Entering directory `/root/ns-3-test/ns-3-allinone/ns-3-dev/build'
[ 895/1561] cxx: src/olsr/model/olsr-routing-protocol.cc -> build/optimized/src/olsr/model/olsr-routing-protocol_1.o                                                                                              
../src/olsr/model/olsr-routing-protocol.cc: In member function ‘void ns3::olsr::RoutingProtocol::Dump()’:
../src/olsr/model/olsr-routing-protocol.cc:3317:8: error: variable ‘now’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
Comment 1 John Abraham 2011-05-16 14:11:32 UTC
Created attachment 1129 [details]
patch
Comment 2 Gustavo J. A. M. Carneiro 2011-05-16 14:13:14 UTC
Comment on attachment 1129 [details]
patch

+1
Comment 3 Lalith Suresh 2011-05-16 14:13:27 UTC
Created attachment 1130 [details]
Fix

Patch attached.
Comment 4 Lalith Suresh 2011-05-16 14:14:35 UTC
I'm late. And yes, +1. :)