2025-12-17 05:56 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-geometry/r-cran-geometry_0.5.2.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 -j90 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: c9c660e (2025-12-16 13:10:32 +0100) count: 27 26 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: geometry/src/RcppExports.cpp:28:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] geometry/src/geometry_init.c:33:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] geometry/src/libqhull_r.h:44:2: error: #error Neither __STDC__ nor __cplusplus is defined. Please use strict ANSI C or C++ to compile [preprocessorErrorDirective] geometry/src/Rtsearch.cpp:84:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] geometry/src/QuadTree.cpp:22:8: warning:inconclusive: Member variable 'Point::x' is not initialized in the constructor. [uninitMemberVar] geometry/src/QuadTree.cpp:22:8: warning:inconclusive: Member variable 'Point::y' is not initialized in the constructor. [uninitMemberVar] geometry/src/QuadTree.cpp:22:8: warning:inconclusive: Member variable 'Point::id' is not initialized in the constructor. [uninitMemberVar] geometry/src/QuadTree.cpp:29:19: style:inconclusive: Technically the member function 'BoundingBox::contains' can be const. [functionConst] geometry/src/QuadTree.h:39:8: note: Technically the member function 'BoundingBox::contains' can be const. geometry/src/QuadTree.cpp:29:19: note: Technically the member function 'BoundingBox::contains' can be const. geometry/src/QuadTree.cpp:40:19: style:inconclusive: Technically the member function 'BoundingBox::intersects' can be const. [functionConst] geometry/src/QuadTree.h:40:8: note: Technically the member function 'BoundingBox::intersects' can be const. geometry/src/QuadTree.cpp:40:19: note: Technically the member function 'BoundingBox::intersects' can be const. geometry/src/QuadTree.cpp:225:16: style: The member function 'QuadTree::in_circle' can be static. [functionStatic] geometry/src/QuadTree.h:70:8: note: The member function 'QuadTree::in_circle' can be static. geometry/src/QuadTree.cpp:225:16: note: The member function 'QuadTree::in_circle' can be static. geometry/src/QuadTree.cpp:234:16: style: The member function 'QuadTree::in_rect' can be static. [functionStatic] geometry/src/QuadTree.h:71:8: note: The member function 'QuadTree::in_rect' can be static. geometry/src/QuadTree.cpp:234:16: note: The member function 'QuadTree::in_rect' can be static. geometry/src/QuadTree.cpp:70:10: warning: Class 'QuadTree' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] geometry/src/QuadTree.cpp:70:10: warning: Class 'QuadTree' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] geometry/src/QuadTree.cpp:27:38: performance: Function parameter 'center' should be passed by const reference. [passedByValue] geometry/src/QuadTree.cpp:27:58: performance: Function parameter 'half_res' should be passed by const reference. [passedByValue] geometry/src/QuadTree.cpp:54:38: performance: Function parameter 'boundary' should be passed by const reference. [passedByValue] geometry/src/QuadTree.cpp:164:47: performance: Function parameter 'bb' should be passed by const reference. [passedByValue] geometry/src/QuadTree.cpp:205:50: performance: Function parameter 'bb' should be passed by const reference. [passedByValue] geometry/src/QuadTree.cpp:215:50: performance: Function parameter 'bb' should be passed by const reference. [passedByValue] geometry/src/QuadTree.cpp:207:77: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] geometry/src/QuadTree.cpp:217:77: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] geometry/src/Rtsearch.cpp:44:28: performance: Function parameter 'p0' should be passed by const reference. [passedByValue] geometry/src/Rtsearch.cpp:44:38: performance: Function parameter 'p1' should be passed by const reference. [passedByValue] geometry/src/Rtsearch.cpp:44:48: performance: Function parameter 'p2' should be passed by const reference. [passedByValue] geometry/src/Rtsearch.cpp:44:58: performance: Function parameter 'p' should be passed by const reference. [passedByValue] geometry/src/Rtsearch.cpp:69:70: style: Parameter 'elem' can be declared as reference to const [constParameterReference] geometry/src/Rtsearch.cpp:70:70: style: Parameter 'elem' can be declared as reference to const [constParameterReference] diff: 2.18.0 geometry/src/QuadTree.cpp:225:16: performance:inconclusive: Technically the member function 'QuadTree::in_circle' can be static (but you may consider moving to unnamed namespace). [functionStatic] geometry/src/QuadTree.h:70:8: note: Technically the member function 'QuadTree::in_circle' can be static (but you may consider moving to unnamed namespace). geometry/src/QuadTree.cpp:225:16: note: Technically the member function 'QuadTree::in_circle' can be static (but you may consider moving to unnamed namespace). head geometry/src/QuadTree.cpp:225:16: style: The member function 'QuadTree::in_circle' can be static. [functionStatic] geometry/src/QuadTree.h:70:8: note: The member function 'QuadTree::in_circle' can be static. geometry/src/QuadTree.cpp:225:16: note: The member function 'QuadTree::in_circle' can be static. 2.18.0 geometry/src/QuadTree.cpp:234:16: performance:inconclusive: Technically the member function 'QuadTree::in_rect' can be static (but you may consider moving to unnamed namespace). [functionStatic] geometry/src/QuadTree.h:71:8: note: Technically the member function 'QuadTree::in_rect' can be static (but you may consider moving to unnamed namespace). geometry/src/QuadTree.cpp:234:16: note: Technically the member function 'QuadTree::in_rect' can be static (but you may consider moving to unnamed namespace). head geometry/src/QuadTree.cpp:234:16: style: The member function 'QuadTree::in_rect' can be static. [functionStatic] geometry/src/QuadTree.h:71:8: note: The member function 'QuadTree::in_rect' can be static. geometry/src/QuadTree.cpp:234:16: note: The member function 'QuadTree::in_rect' can be static. head geometry/src/QuadTree.cpp:70:10: warning: Class 'QuadTree' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head geometry/src/QuadTree.cpp:70:10: warning: Class 'QuadTree' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 geometry/src/libqhull_r.h:44:0: error: #error Neither __STDC__ nor __cplusplus is defined. Please use strict ANSI C or C++ to compile [preprocessorErrorDirective] DONE