2022-06-25 13:07 ftp://ftp.de.debian.org/debian/pool/main/t/tevent/tevent_0.12.0.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 -j6 platform: Linux-5.4.0-120-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 63e567eb5 (2022-06-25 08:38:17 +0200) count: 65 65 elapsed-time: 2.2 2.2 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: tevent-0.12.0/lib/replace/replace.h:45:0: error: #error -D__STDC_WANT_LIB_EXT1__=1 required [preprocessorErrorDirective] tevent-0.12.0/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] tevent-0.12.0/lib/replace/tests/os2_delete.c:115:2: warning: Return value of function strcmp() is not used. [ignoredReturnValue] tevent-0.12.0/lib/replace/tests/os2_delete.c:117:2: warning: Return value of function strcmp() is not used. [ignoredReturnValue] tevent-0.12.0/lib/replace/tests/os2_delete.c:69:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] tevent-0.12.0/lib/replace/tests/os2_delete.c:71:10: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] tevent-0.12.0/lib/replace/tests/os2_delete.c:114:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] tevent-0.12.0/lib/replace/tests/os2_delete.c:116:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] tevent-0.12.0/lib/replace/tests/os2_delete.c:55:13: warning: Either the condition 'fd<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] tevent-0.12.0/lib/replace/tests/os2_delete.c:52:10: note: Assuming that condition 'fd<0' is not redundant tevent-0.12.0/lib/replace/tests/os2_delete.c:55:13: note: Invalid argument tevent-0.12.0/lib/replace/tests/os2_delete.c:50:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] tevent-0.12.0/lib/replace/tests/snprintf.c:22:6: warning: %zu in format string (no. 1) requires 'size_t' but the argument type is 'signed int'. [invalidPrintfArgType_uint] tevent-0.12.0/lib/replace/tests/snprintf.c:24:6: warning: %s in format string (no. 1) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] tevent-0.12.0/lib/replace/tests/snprintf.c:24:30: error: Null pointer dereference [nullPointer] tevent-0.12.0/lib/talloc/talloc.c:41:0: error: #error "TALLOC_VERSION_MAJOR != TALLOC_BUILD_VERSION_MAJOR" [preprocessorErrorDirective] tevent-0.12.0/lib/talloc/pytalloc_util.c:327:51: style:inconclusive: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. [funcArgNamesDifferent] tevent-0.12.0/lib/talloc/pytalloc.h:61:51: note: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. tevent-0.12.0/lib/talloc/pytalloc_util.c:327:51: note: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. tevent-0.12.0/pytevent.c:211:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:258:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:279:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:288:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:298:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:586:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:593:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:600:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:607:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:614:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:629:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:635:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:642:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:649:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:655:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/pytevent.c:664:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] tevent-0.12.0/testsuite.c:1047:1: style: Label 'pop_use' is not used. [unusedLabel] tevent-0.12.0/testsuite.c:1193:1: style: Label 'done' is not used. [unusedLabel] tevent-0.12.0/testsuite.c:128:31: style: Variable 'info_count' is assigned a value that is never used. [unreadVariable] tevent-0.12.0/tevent_epoll.c:245:2: error: Address of local auto-variable assigned to a function parameter. [autoVariables] tevent-0.12.0/tevent_epoll.c:818:7: style: Condition 'panic_triggered' is always false [knownConditionTrueFalse] tevent-0.12.0/tevent_epoll.c:812:6: note: Assuming that condition 'panic_triggered' is not redundant tevent-0.12.0/tevent_epoll.c:818:7: note: Condition 'panic_triggered' is always false tevent-0.12.0/tevent_epoll.c:826:6: style: Condition 'panic_triggered' is always false [knownConditionTrueFalse] tevent-0.12.0/tevent_epoll.c:812:6: note: Assuming that condition 'panic_triggered' is not redundant tevent-0.12.0/tevent_epoll.c:826:6: note: Condition 'panic_triggered' is always false tevent-0.12.0/tevent_immediate.c:254:66: style:inconclusive: Function 'tevent_immediate_get_tag' argument 1 names different: declaration 'fde' definition 'im'. [funcArgNamesDifferent] tevent-0.12.0/tevent.h:368:66: note: Function 'tevent_immediate_get_tag' argument 1 names different: declaration 'fde' definition 'im'. tevent-0.12.0/tevent_immediate.c:254:66: note: Function 'tevent_immediate_get_tag' argument 1 names different: declaration 'fde' definition 'im'. tevent-0.12.0/tevent.c:682:28: style:inconclusive: Function '_tevent_schedule_immediate' argument 2 names different: declaration 'ctx' definition 'ev'. [funcArgNamesDifferent] tevent-0.12.0/tevent.h:344:28: note: Function '_tevent_schedule_immediate' argument 2 names different: declaration 'ctx' definition 'ev'. tevent-0.12.0/tevent.c:682:28: note: Function '_tevent_schedule_immediate' argument 2 names different: declaration 'ctx' definition 'ev'. tevent-0.12.0/lib/talloc/testsuite.c:1408:7: style: Variable 'p1_2' is reassigned a value before the old one has been used. [redundantAssignment] tevent-0.12.0/lib/talloc/testsuite.c:1406:7: note: p1_2 is assigned tevent-0.12.0/lib/talloc/testsuite.c:1408:7: note: p1_2 is overwritten tevent-0.12.0/lib/talloc/testsuite.c:1425:7: style: Variable 'p2_2' is reassigned a value before the old one has been used. [redundantAssignment] tevent-0.12.0/lib/talloc/testsuite.c:1422:7: note: p2_2 is assigned tevent-0.12.0/lib/talloc/testsuite.c:1425:7: note: p2_2 is overwritten tevent-0.12.0/tevent.c:435:6: style: Unused variable: ret [unusedVariable] tevent-0.12.0/lib/talloc/testsuite.c:429:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] tevent-0.12.0/lib/talloc/testsuite.c:437:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] tevent-0.12.0/lib/talloc/testsuite.c:492:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] tevent-0.12.0/lib/talloc/testsuite.c:813:5: style: Variable 'p1' is assigned a value that is never used. [unreadVariable] tevent-0.12.0/lib/talloc/testsuite.c:912:9: style: Variable 'p1' is allocated memory that is never used. [unusedAllocatedMemory] tevent-0.12.0/lib/talloc/testsuite.c:913:9: style: Variable 'p2' is allocated memory that is never used. [unusedAllocatedMemory] tevent-0.12.0/lib/talloc/testsuite.c:914:9: style: Variable 'p3' is allocated memory that is never used. [unusedAllocatedMemory] tevent-0.12.0/tevent_standard.c:110:12: warning: Either the condition 'glue->epoll_ops!=NULL' is redundant or there is possible null pointer dereference: glue->epoll_ops. [nullPointerRedundantCheck] tevent-0.12.0/tevent_standard.c:116:22: note: Assuming that condition 'glue->epoll_ops!=NULL' is not redundant tevent-0.12.0/tevent_standard.c:110:12: note: Null pointer dereference tevent-0.12.0/tevent_standard.c:141:12: warning: Either the condition 'glue->epoll_ops!=NULL' is redundant or there is possible null pointer dereference: glue->epoll_ops. [nullPointerRedundantCheck] tevent-0.12.0/tevent_standard.c:147:22: note: Assuming that condition 'glue->epoll_ops!=NULL' is not redundant tevent-0.12.0/tevent_standard.c:141:12: note: Null pointer dereference tevent-0.12.0/tevent_req.c:433:3: warning: Either the condition 'p->subprofiles' is redundant or there is possible null pointer dereference: p->subprofiles. [nullPointerRedundantCheck] tevent-0.12.0/tevent_req.c:433:3: note: Assuming that condition 'p->subprofiles' is not redundant tevent-0.12.0/tevent_req.c:433:3: note: Null pointer dereference tevent-0.12.0/tevent_req.c:433:3: style: Same expression on both sides of '=='. [duplicateExpression] tevent-0.12.0/tevent_req.c:433:3: style: Same expression on both sides of '!='. [duplicateExpression] tevent-0.12.0/tevent_req.c:62:15: style:inconclusive: Function '_tevent_req_create' argument 2 names different: declaration 'pstate' definition 'pdata'. [funcArgNamesDifferent] tevent-0.12.0/tevent.h:1260:17: note: Function '_tevent_req_create' argument 2 names different: declaration 'pstate' definition 'pdata'. tevent-0.12.0/tevent_req.c:62:15: note: Function '_tevent_req_create' argument 2 names different: declaration 'pstate' definition 'pdata'. tevent-0.12.0/tevent_req.c:63:16: style:inconclusive: Function '_tevent_req_create' argument 3 names different: declaration 'state_size' definition 'data_size'. [funcArgNamesDifferent] tevent-0.12.0/tevent.h:1261:18: note: Function '_tevent_req_create' argument 3 names different: declaration 'state_size' definition 'data_size'. tevent-0.12.0/tevent_req.c:63:16: note: Function '_tevent_req_create' argument 3 names different: declaration 'state_size' definition 'data_size'. tevent-0.12.0/tevent_req.c:525:18: style:inconclusive: Function 'tevent_req_profile_set_name' argument 2 names different: declaration 'name' definition 'req_name'. [funcArgNamesDifferent] tevent-0.12.0/tevent.h:1702:18: note: Function 'tevent_req_profile_set_name' argument 2 names different: declaration 'name' definition 'req_name'. tevent-0.12.0/tevent_req.c:525:18: note: Function 'tevent_req_profile_set_name' argument 2 names different: declaration 'name' definition 'req_name'. tevent-0.12.0/third_party/cmocka/cmocka.c:2696:9: style: Condition 'handle_exceptions' is always true [knownConditionTrueFalse] tevent-0.12.0/third_party/cmocka/cmocka.c:2681:29: note: Assignment 'handle_exceptions=1', assigned value is 1 tevent-0.12.0/third_party/cmocka/cmocka.c:2696:9: note: Condition 'handle_exceptions' is always true tevent-0.12.0/third_party/cmocka/cmocka.c:3065:9: style: Condition 'handle_exceptions' is always true [knownConditionTrueFalse] tevent-0.12.0/third_party/cmocka/cmocka.c:3055:29: note: Assignment 'handle_exceptions=1', assigned value is 1 tevent-0.12.0/third_party/cmocka/cmocka.c:3065:9: note: Condition 'handle_exceptions' is always true tevent-0.12.0/third_party/cmocka/cmocka.c:607:48: style:inconclusive: Function 'list_add_value' argument 3 names different: declaration 'count' definition 'refcount'. [funcArgNamesDifferent] tevent-0.12.0/third_party/cmocka/cmocka.c:224:48: note: Function 'list_add_value' argument 3 names different: declaration 'count' definition 'refcount'. tevent-0.12.0/third_party/cmocka/cmocka.c:607:48: note: Function 'list_add_value' argument 3 names different: declaration 'count' definition 'refcount'. tevent-0.12.0/third_party/cmocka/cmocka.c:743:59: style:inconclusive: Function 'add_symbol_value' argument 5 names different: declaration 'count' definition 'refcount'. [funcArgNamesDifferent] tevent-0.12.0/third_party/cmocka/cmocka.c:242:71: note: Function 'add_symbol_value' argument 5 names different: declaration 'count' definition 'refcount'. tevent-0.12.0/third_party/cmocka/cmocka.c:743:59: note: Function 'add_symbol_value' argument 5 names different: declaration 'count' definition 'refcount'. tevent-0.12.0/third_party/cmocka/cmocka.c:781:26: style:inconclusive: Function 'get_symbol_value' argument 1 names different: declaration 'symbol_map_head' definition 'head'. [funcArgNamesDifferent] tevent-0.12.0/third_party/cmocka/cmocka.c:244:22: note: Function 'get_symbol_value' argument 1 names different: declaration 'symbol_map_head' definition 'head'. tevent-0.12.0/third_party/cmocka/cmocka.c:781:26: note: Function 'get_symbol_value' argument 1 names different: declaration 'symbol_map_head' definition 'head'. tevent-0.12.0/lib/replace/tests/testsuite.c:933:6: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] tevent-0.12.0/lib/replace/tests/testsuite.c:949:6: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] tevent-0.12.0/lib/replace/tests/testsuite.c:1023:6: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] diff: head tevent-0.12.0/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] 2.8 tevent-0.12.0/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared with const [constParameter] DONE