2022-06-20 18:08 ftp://ftp.de.debian.org/debian/pool/main/a/ann/ann_1.1.2+doc.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.24 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 5b9fa96 (2022-06-20 20:02:22 +0200) count: 48 48 elapsed-time: 19.7 24.8 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: ann-1.1.2+doc/src/ANN.cpp:60:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_FLOP is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/ann2fig/ann2fig.cpp:583:1: error: syntax error [syntaxError] ann-1.1.2+doc/src/bd_fix_rad_search.cpp:59:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_FLOP is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/src/bd_pr_search.cpp:60:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_FLOP is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/src/bd_search.cpp:59:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_FLOP is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/src/pr_queue_k.h:87:9: style:inconclusive: Technically the member function 'ANNmin_k::ANNmin_key' can be const. [functionConst] ann-1.1.2+doc/src/pr_queue_k.h:90:9: style:inconclusive: Technically the member function 'ANNmin_k::max_key' can be const. [functionConst] ann-1.1.2+doc/src/pr_queue_k.h:93:9: style:inconclusive: Technically the member function 'ANNmin_k::ith_smallest_key' can be const. [functionConst] ann-1.1.2+doc/src/pr_queue_k.h:96:10: style:inconclusive: Technically the member function 'ANNmin_k::ith_smallest_info' can be const. [functionConst] ann-1.1.2+doc/src/pr_queue_k.h:81:4: warning: Class 'ANNmin_k' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] ann-1.1.2+doc/src/pr_queue_k.h:81:4: warning: Class 'ANNmin_k' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] ann-1.1.2+doc/src/pr_queue_k.h:77:2: style: Class 'ANNmin_k' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ann-1.1.2+doc/src/kd_fix_rad_search.cpp:138:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_FLOP is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/src/kd_pr_search.cpp:171:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_SPL is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/src/kd_tree.h:101:4: performance: Variable 'bkt' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] ann-1.1.2+doc/src/kd_tree.h:157:4: performance: Variable 'cut_val' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] ann-1.1.2+doc/src/bd_tree.h:73:4: performance: Variable 'bnds' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] ann-1.1.2+doc/src/kd_tree.h:106:15: style: The function 'getStats' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:54:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:106:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:110:15: style: The function 'print' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:59:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:110:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:111:15: style: The function 'dump' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:60:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:111:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:113:15: style: The function 'ann_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:50:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:113:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:114:15: style: The function 'ann_pri_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:51:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:114:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:115:15: style: The function 'ann_FR_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:52:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:115:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:172:15: style: The function 'getStats' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:54:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:172:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:176:15: style: The function 'print' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:59:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:176:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:177:15: style: The function 'dump' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:60:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:177:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:179:15: style: The function 'ann_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:50:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:179:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:180:15: style: The function 'ann_pri_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:51:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:180:15: note: Function in derived class ann-1.1.2+doc/src/kd_tree.h:181:15: style: The function 'ann_FR_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:52:15: note: Virtual function in base class ann-1.1.2+doc/src/kd_tree.h:181:15: note: Function in derived class ann-1.1.2+doc/src/bd_tree.h:88:15: style: The function 'getStats' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:54:15: note: Virtual function in base class ann-1.1.2+doc/src/bd_tree.h:88:15: note: Function in derived class ann-1.1.2+doc/src/bd_tree.h:92:15: style: The function 'print' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:59:15: note: Virtual function in base class ann-1.1.2+doc/src/bd_tree.h:92:15: note: Function in derived class ann-1.1.2+doc/src/bd_tree.h:93:15: style: The function 'dump' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:60:15: note: Virtual function in base class ann-1.1.2+doc/src/bd_tree.h:93:15: note: Function in derived class ann-1.1.2+doc/src/bd_tree.h:95:15: style: The function 'ann_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:50:15: note: Virtual function in base class ann-1.1.2+doc/src/bd_tree.h:95:15: note: Function in derived class ann-1.1.2+doc/src/bd_tree.h:96:15: style: The function 'ann_pri_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:51:15: note: Virtual function in base class ann-1.1.2+doc/src/bd_tree.h:96:15: note: Function in derived class ann-1.1.2+doc/src/bd_tree.h:97:15: style: The function 'ann_FR_search' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] ann-1.1.2+doc/src/kd_tree.h:52:15: note: Virtual function in base class ann-1.1.2+doc/src/bd_tree.h:97:15: note: Function in derived class ann-1.1.2+doc/src/kd_search.cpp:162:2: error: There is an unknown macro here somewhere. Configuration is required. If ANN_FLOP is a macro then please configure it. [unknownMacro] ann-1.1.2+doc/src/kd_dump.cpp:375:6: style: The scope of the variable 'n_pts' can be reduced. [variableScope] ann-1.1.2+doc/test/rand.cpp:86:4: warning: Return value of function random() is not used. [ignoredReturnValue] ann-1.1.2+doc/test/rand.cpp:67:18: style: Condition 'RAN_DIVISOR<0' is always false [knownConditionTrueFalse] ann-1.1.2+doc/test/rand.cpp:66:35: note: Assignment 'RAN_DIVISOR=double(2147483647UL+1UL)', assigned value is 2147483648.0 ann-1.1.2+doc/test/rand.cpp:67:18: note: Condition 'RAN_DIVISOR<0' is always false ann-1.1.2+doc/test/rand.cpp:395:13: style: Parameter 'control' can be declared as pointer to const [constParameter] ann-1.1.2+doc/test/rand.cpp:494:13: style: Parameter 'std_dev' can be declared as pointer to const [constParameter] ann-1.1.2+doc/test/rand.cpp:493:13: style: Parameter 'center' can be declared as pointer to const [constParameter] ann-1.1.2+doc/test/rand.cpp:160:10: error: Uninitialized variable: v1 [uninitvar] ann-1.1.2+doc/test/rand.cpp:145:12: note: Assuming condition is false ann-1.1.2+doc/test/rand.cpp:160:10: note: Uninitialized variable: v1 ann-1.1.2+doc/test/rand.cpp:162:10: error: Uninitialized variable: v2 [uninitvar] ann-1.1.2+doc/test/rand.cpp:145:12: note: Assuming condition is false ann-1.1.2+doc/test/rand.cpp:162:10: note: Uninitialized variable: v2 ann-1.1.2+doc/test/ann_test.cpp:888:15: style: Condition 'stats>=EXEC_TIME' is always true [knownConditionTrueFalse] ann-1.1.2+doc/test/ann_test.cpp:880:14: note: Assuming that condition 'stats>SILENT' is not redundant ann-1.1.2+doc/test/ann_test.cpp:888:15: note: Condition 'stats>=EXEC_TIME' is always true ann-1.1.2+doc/test/ann_test.cpp:1110:15: style: Condition 'stats>=EXEC_TIME' is always true [knownConditionTrueFalse] ann-1.1.2+doc/test/ann_test.cpp:1096:14: note: Assuming that condition 'stats>SILENT' is not redundant ann-1.1.2+doc/test/ann_test.cpp:1110:15: note: Condition 'stats>=EXEC_TIME' is always true ann-1.1.2+doc/test/ann_test.cpp:1469:23: style: Variable 'curr_apx_idx' is assigned a value that is never used. [unreadVariable] ann-1.1.2+doc/test/ann_test.cpp:1555:16: style: Variable 'curr_apx_idx' is assigned a value that is never used. [unreadVariable] diff: head ann-1.1.2+doc/test/rand.cpp:395:13: style: Parameter 'control' can be declared as pointer to const [constParameter] 2.8 ann-1.1.2+doc/test/rand.cpp:395:13: style: Parameter 'control' can be declared with const [constParameter] head ann-1.1.2+doc/test/rand.cpp:493:13: style: Parameter 'center' can be declared as pointer to const [constParameter] 2.8 ann-1.1.2+doc/test/rand.cpp:493:13: style: Parameter 'center' can be declared with const [constParameter] head ann-1.1.2+doc/test/rand.cpp:494:13: style: Parameter 'std_dev' can be declared as pointer to const [constParameter] 2.8 ann-1.1.2+doc/test/rand.cpp:494:13: style: Parameter 'std_dev' can be declared with const [constParameter] DONE