Bug 1158

Summary: opt build olsr variable ‘now’ set but not used
Product: ns-3 Reporter: John Abraham <john.abraham.in>
Component: olsrAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: trivial CC: ns-bugs, suresh.lalith
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch
Fix

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. :)