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
I've pushed a fix [85cacb], please check if it fixes the warning on your system.
Related
Commit: [85cacb]
It fixes the issue. Thanks.