Bug 1150 - ‘haveOutfile’ set but not used , g++ > 4.6.0
‘haveOutfile’ set but not used , g++ > 4.6.0
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: test framework
ns-3-dev
All All
: P5 trivial
Assigned To: Mitch Watrous
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-16 11:56 UTC by John Abraham
Modified: 2011-06-08 15:04 UTC (History)
1 user (show)

See Also:


Attachments
patch (577 bytes, patch)
2011-05-16 12:01 UTC, John Abraham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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