Menu

#39 model_based_scenery.cpp:577:46: warning: 'temp_heightdata' may be used uninitialized in this function

None
closed-fixed
fedora (5)
5
2018-07-04
2017-12-21
No

Building crrcsim v0.9.13 for Fedora produces the following warning[1]:

src/mod_landscape/model_based_scenery.cpp: In member function 'void ModelBasedScenery::addPopulation(SimpleXMLTransfer*, bool, bool, ssgEntity*, ssgBranch*)':
src/mod_landscape/model_based_scenery.cpp:577:46: warning: 'temp_heightdata' may be used uninitialized in this function [-Wmaybe-uninitialized]
         x[SG_Z] += temp_heightdata->getHeight(x[SG_Y], x[SG_X]);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~

[1]. https://kojipkgs.fedoraproject.org//work/tasks/2391/23822391/build.log

Discussion

  • Jan Reucker

    Jan Reucker - 2017-12-22

    I've pushed a fix [85cacb], please check if it fixes the warning on your system.

     

    Related

    Commit: [85cacb]

  • Jan Reucker

    Jan Reucker - 2017-12-22
    • status: open --> accepted
    • assigned_to: Jan Reucker
    • Group: -->
     
  • Damian Wrobel

    Damian Wrobel - 2017-12-22

    It fixes the issue. Thanks.

     
  • Jan Reucker

    Jan Reucker - 2018-07-04
    • status: accepted --> closed-fixed
     

Log in to post a comment.