2025-09-15 03:02 ftp://ftp.de.debian.org/debian/pool/main/o/osmcoastline/osmcoastline_2.4.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 28 52 elapsed-time: 0.3 0.9 head-timing-info: old-timing-info: head results: osmcoastline-2.4.1/src/coastline_polygons.hpp:81:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GDAL_COMPUTE_VERSION( ... ) [preprocessorErrorDirective] osmcoastline-2.4.1/src/coastline_polygons.hpp:81:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GDAL_COMPUTE_VERSION( ... ) [preprocessorErrorDirective] osmcoastline-2.4.1/src/coastline_ring.cpp:49:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/coastline_ring.cpp:42:29: style:inconclusive: Technically the member function 'CoastlineRing::check_locations' can be const. [functionConst] osmcoastline-2.4.1/src/coastline_ring.hpp:191:18: note: Technically the member function 'CoastlineRing::check_locations' can be const. osmcoastline-2.4.1/src/coastline_ring.cpp:42:29: note: Technically the member function 'CoastlineRing::check_locations' can be const. osmcoastline-2.4.1/src/nodegrid2opl.cpp:72:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/nodegrid2opl.cpp:92:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cin [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/options.cpp:41:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/options.cpp:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/options.cpp:92:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/options.cpp:131:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/options.cpp:101:36: style: Parameter 'argv' can be declared as const array [constParameter] osmcoastline-2.4.1/src/options.cpp:102:26: style: Variable 'long_options' can be declared as const array [constVariable] osmcoastline-2.4.1/src/osmcoastline_filter.cpp:52:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_filter.cpp:86:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_filter.cpp:69:26: style: Variable 'long_options' can be declared as const array [constVariable] osmcoastline-2.4.1/src/osmcoastline_segments.cpp:101:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wkbLineString [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_segments.cpp:143:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_segments.cpp:118:26: style: Parameter 'argv' can be declared as const array [constParameter] osmcoastline-2.4.1/src/osmcoastline_segments.cpp:123:26: style: Variable 'long_options' can be declared as const array [constVariable] osmcoastline-2.4.1/src/osmcoastline_ways.cpp:69:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OFTString [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_ways.cpp:99:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_ways.cpp:112:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/osmcoastline_ways.cpp:109:26: style: Parameter 'argv' can be declared as const array [constParameter] osmcoastline-2.4.1/src/srs.hpp:68:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OGRERR_NONE [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/output_database.cpp:53:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OFTString [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/output_database.cpp:192:117: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/srs.cpp:31:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OGRERR_NONE [valueFlowBailoutIncompleteVar] osmcoastline-2.4.1/src/srs.cpp:54:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OGRERR_NONE [valueFlowBailoutIncompleteVar] diff: 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:106:37: debug: Failed to instantiate template "make_unique_ptr_clone". The checking continues anyway. [templateInstantiation] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:114:25: style:inconclusive: Technically the member function 'CoastlinePolygons::transform' can be const. [functionConst] osmcoastline-2.4.1/src/coastline_polygons.hpp:114:10: note: Technically the member function 'CoastlinePolygons::transform' can be const. osmcoastline-2.4.1/src/coastline_polygons.cpp:114:25: note: Technically the member function 'CoastlinePolygons::transform' can be const. 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:121:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wkbPolygon [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:123:23: debug: Failed to instantiate template "static_cast_unique_ptr". The checking continues anyway. [templateInstantiation] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:139:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:205:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wkbPolygon [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:350:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:450:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_polygons.cpp:70:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] head osmcoastline-2.4.1/src/coastline_polygons.hpp:81:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GDAL_COMPUTE_VERSION( ... ) [preprocessorErrorDirective] head osmcoastline-2.4.1/src/coastline_polygons.hpp:81:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GDAL_COMPUTE_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:120:31: style:inconclusive: Technically the member function 'CoastlineRingCollection::setup_locations' can be const. [functionConst] osmcoastline-2.4.1/src/coastline_ring_collection.hpp:106:10: note: Technically the member function 'CoastlineRingCollection::setup_locations' can be const. osmcoastline-2.4.1/src/coastline_ring_collection.cpp:120:31: note: Technically the member function 'CoastlineRingCollection::setup_locations' can be const. 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:126:39: style:inconclusive: Technically the member function 'CoastlineRingCollection::check_locations' can be const. [functionConst] osmcoastline-2.4.1/src/coastline_ring_collection.hpp:108:18: note: Technically the member function 'CoastlineRingCollection::check_locations' can be const. osmcoastline-2.4.1/src/coastline_ring_collection.cpp:126:39: note: Technically the member function 'CoastlineRingCollection::check_locations' can be const. 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:130:27: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:139:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wkbPolygon [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:164:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:266:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:381:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/coastline_ring_collection.cpp:447:15: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:123:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:167:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:200:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:230:9: error: Resource leak: segments_fd [resourceLeak] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:88:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wkbPolygon [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:93:35: debug: Failed to instantiate template "make_unique_ptr_clone". The checking continues anyway. [templateInstantiation] 2.18.0 osmcoastline-2.4.1/src/osmcoastline.cpp:97:37: debug: Failed to instantiate template "static_cast_unique_ptr". The checking continues anyway. [templateInstantiation] 2.18.0 osmcoastline-2.4.1/src/util.hpp:30:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 osmcoastline-2.4.1/src/util.hpp:36:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] DONE