[Ns-bugs] [Bug 1153] New: optimized build : variable ‘tmp’ set but not used , g++ > 4.6.0

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Mon May 16 09:26:17 PDT 2011


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1153

           Summary: optimized build : variable ‘tmp’ set but not used, g++
                    > 4.6.0
           Product: ns-3
           Version: ns-3-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: core
        AssignedTo: mathieu.lacage at gmail.com
        ReportedBy: jabraham3 at mail.gatech.edu
                CC: ns-bugs at isi.edu
   Estimated Hours: 0.0


This shows up only in optimized builds with g++ > 4.6.0

[ 656/1561] cxx: src/core/model/config.cc ->
build/optimized/src/core/model/config_1.o                   
../src/core/model/config.cc: In member function ‘void
ns3::Resolver::DoResolve(std::string, ns3::Ptr<ns3::Object>)’:
../src/core/model/config.cc:291:26: error: variable ‘tmp’ set but not used
[-Werror=unused-but-set-variable]
../src/core/model/config.cc: In member function ‘void
ns3::Resolver::DoArrayResolve(std::string, const ns3::ObjectVectorValue&)’:
../src/core/model/config.cc:427:26: error: variable ‘tmp’ set but not used
[-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list