Issue
fails to compile latest master with gcc 16.0.1 on debian:
/home/nyllet/osrm-backend/src/extractor/raster_source.cpp: In constructor ‘osrm::extractor::RasterSource::RasterSource(osrm::extractor::RasterGrid, std::size_t, std::size_t, int, int, int, int)’:
/home/nyllet/osrm-backend/src/extractor/raster_source.cpp:21:21: error: ‘’ may be used uninitialized [-Werror=maybe-uninitialized]
21 | : xstep(CalcSize(_xmin, _xmax, _width)), ystep(CalcSize(_ymin, _ymax, _height)),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/nyllet/osrm-backend/src/extractor/raster_source.cpp:29:7: note: by argument 1 of type ‘const osrm::extractor::RasterSource*’ to ‘float osrm::extractor::RasterSource::CalcSize(int, int, std::size_t) const’ declared here
29 | float RasterSource::CalcSize(int min, int max, std::size_t count) const
| ^~~~~~~~~~~~
Steps to reproduce
Please provide the steps required to reproduce your problem.
pull latest master. create a build directory. run CC=/usr/bin/gcc-16 CXX=/usr/bin/g++-16 cmake .. and then make
Specifications
debain testing
liblua 5.4
boost 1.90
gcc 16.0.1
Issue
fails to compile latest master with gcc 16.0.1 on debian:
/home/nyllet/osrm-backend/src/extractor/raster_source.cpp: In constructor ‘osrm::extractor::RasterSource::RasterSource(osrm::extractor::RasterGrid, std::size_t, std::size_t, int, int, int, int)’:
/home/nyllet/osrm-backend/src/extractor/raster_source.cpp:21:21: error: ‘’ may be used uninitialized [-Werror=maybe-uninitialized]
21 | : xstep(CalcSize(_xmin, _xmax, _width)), ystep(CalcSize(_ymin, _ymax, _height)),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/nyllet/osrm-backend/src/extractor/raster_source.cpp:29:7: note: by argument 1 of type ‘const osrm::extractor::RasterSource*’ to ‘float osrm::extractor::RasterSource::CalcSize(int, int, std::size_t) const’ declared here
29 | float RasterSource::CalcSize(int min, int max, std::size_t count) const
| ^~~~~~~~~~~~
Steps to reproduce
Please provide the steps required to reproduce your problem.
pull latest master. create a build directory. run CC=/usr/bin/gcc-16 CXX=/usr/bin/g++-16 cmake .. and then make
Specifications
debain testing
liblua 5.4
boost 1.90
gcc 16.0.1