Bug 1150

Summary: ‘haveOutfile’ set but not used , g++ > 4.6.0
Product: ns-3 Reporter: John Abraham <john.abraham.in>
Component: test frameworkAssignee: Mitch Watrous <watrous>
Status: RESOLVED FIXED    
Severity: trivial CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch

Description John Abraham 2011-05-16 11:56:03 UTC
[1267/1561] cxx: utils/test-runner.cc -> build/debug/utils/test-runner_1.o                               
../utils/test-runner.cc: In function ‘int main(int, char**)’:                                            
../utils/test-runner.cc:199:8: error: variable ‘haveOutfile’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
Comment 1 John Abraham 2011-05-16 12:01:25 UTC
Created attachment 1119 [details]
patch

the line 
  if (!outfileName.empty ())
is sufficient to handle this case