Bug 2143 - maybe-uninitialized warning
maybe-uninitialized warning
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: lte
pre-release
PC Linux
: P5 enhancement
Assigned To: Nicola Baldo
:
: 2128 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-23 17:58 UTC by Tom Henderson
Modified: 2015-07-10 04:25 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2015-06-23 17:58:49 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
Comment 1 Nicola Baldo 2015-06-30 12:34:42 UTC
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
Comment 2 Nicola Baldo 2015-07-10 04:25:05 UTC
*** Bug 2128 has been marked as a duplicate of this bug. ***