Bugzilla – Bug 2143
maybe-uninitialized warning
Last modified: 2015-07-10 04:25:05 UTC
This popped up in our buildslave, on a 64-bit Fedora 21 server configured to use optimized build and also using CPPFLAGS='-std=c++11'. [2105/2468] Compiling src/lte/model/eps-bearer-tag.cc In file included from ./ns3/epc-x2-header.h:24:0, from ../src/lte/model/epc-x2.cc:27: ./ns3/epc-x2-sap.h: In member function ‘void ns3::EpcX2::RecvFromX2cSocket(ns3::Ptr<ns3::Socket>)’: ./ns3/epc-x2-sap.h:311:10: error: ‘params.ns3::EpcX2Sap::ResourceStatusUpdateParams::targetCellId’ may be used uninitialized in this function [-Werror=maybe-uninitialized] struct ResourceStatusUpdateParams ^ ../src/lte/model/epc-x2.cc:350:52: note: ‘params.ns3::EpcX2Sap::ResourceStatusUpdateParams::targetCellId’ was declared here EpcX2SapUser::ResourceStatusUpdateParams params; ^ cc1plus: all warnings being treated as errors Details here: https://ns-buildmaster.ee.washington.edu:8010/job/daily-linux-c++-11/label=Fedora-64-21/485/console
This should fix it, though I could not test it the target system changeset: 11468:53280fca36a5 tag: tip user: Nicola Baldo <nbaldo@cttc.es> date: Tue Jun 30 18:31:43 2015 +0200 summary: fixed Bug 2143 - maybe-uninitialized warning
*** Bug 2128 has been marked as a duplicate of this bug. ***