2025-07-01 02:20 ftp://ftp.de.debian.org/debian/pool/main/t/talloc/talloc_2.4.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: dfa16af (2025-06-30 19:43:56 +0200) count: 137 139 elapsed-time: 1.8 1.9 head-timing-info: old-timing-info: head results: talloc-2.4.2/lib/replace/replace.h:45:0: error: #error -D__STDC_WANT_LIB_EXT1__=1 required [preprocessorErrorDirective] talloc-2.4.2/lib/replace/replace.h:45:2: error: #error -D__STDC_WANT_LIB_EXT1__=1 required [preprocessorErrorDirective] talloc-2.4.2/lib/replace/tests/getifaddrs.c:42:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/getifaddrs.c:67:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/shared_mremap.c:30:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/shared_mmap.c:25:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:31:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/strptime.c:77:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable elen [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:60:10: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:59:16: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:59:16: note: Assignment 'page=malloc(getpagesize())', assigned value is 0 talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:60:10: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:68:8: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:63:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:63:13: note: Assignment 'map=mmap(NULL,getpagesize(),PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:68:8: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:39:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/os2_delete.c:51:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/os2_delete.c:85:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/os2_delete.c:107:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] talloc-2.4.2/lib/replace/tests/incoherent_mmap.c:20:26: style: Variable 'map' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/shared_mmap.c:45:21: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/shared_mmap.c:40:20: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/shared_mmap.c:40:9: note: Assignment 'buf=(int*)mmap(NULL,10000*sizeof(int),PROT_READ|PROT_WRITE,0|MAP_SHARED,fd,0)', assigned value is 0 talloc-2.4.2/lib/replace/tests/shared_mmap.c:45:21: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/shared_mmap.c:49:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/shared_mmap.c:40:20: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/shared_mmap.c:40:9: note: Assignment 'buf=(int*)mmap(NULL,10000*sizeof(int),PROT_READ|PROT_WRITE,0|MAP_SHARED,fd,0)', assigned value is 0 talloc-2.4.2/lib/replace/tests/shared_mmap.c:47:13: note: Assuming condition is false talloc-2.4.2/lib/replace/tests/shared_mmap.c:49:3: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/shared_mmap.c:63:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/shared_mmap.c:56:19: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/shared_mmap.c:56:8: note: Assignment 'buf=(int*)mmap(NULL,10000*sizeof(int),PROT_READ|PROT_WRITE,0|MAP_SHARED,fd,0)', assigned value is 0 talloc-2.4.2/lib/replace/tests/shared_mmap.c:63:2: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/shared_mmap.c:65:20: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/shared_mmap.c:56:19: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/shared_mmap.c:56:8: note: Assignment 'buf=(int*)mmap(NULL,10000*sizeof(int),PROT_READ|PROT_WRITE,0|MAP_SHARED,fd,0)', assigned value is 0 talloc-2.4.2/lib/replace/tests/shared_mmap.c:65:20: note: Null pointer dereference talloc-2.4.2/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] talloc-2.4.2/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] talloc-2.4.2/lib/replace/tests/snprintf.c:24:30: error: Null pointer dereference [nullPointer] talloc-2.4.2/lib/replace/tests/os2_delete.c:115:2: warning: Return value of function strcmp() is not used. [ignoredReturnValue] talloc-2.4.2/lib/replace/tests/os2_delete.c:117:2: warning: Return value of function strcmp() is not used. [ignoredReturnValue] talloc-2.4.2/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] talloc-2.4.2/lib/replace/tests/os2_delete.c:52:10: note: Assuming that condition 'fd<0' is not redundant talloc-2.4.2/lib/replace/tests/os2_delete.c:55:13: note: Invalid argument talloc-2.4.2/lib/replace/tests/strptime.c:29:8: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/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] talloc-2.4.2/lib/replace/tests/os2_delete.c:69:23: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assignment 'd=opendir("test.dir")', assigned value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:120:22: note: Calling function 'os2_delete', 1st argument 'd' value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:69:23: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:71:18: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assignment 'd=opendir("test.dir")', assigned value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:120:22: note: Calling function 'os2_delete', 1st argument 'd' value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:71:18: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:72:24: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assignment 'd=opendir("test.dir")', assigned value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:120:22: note: Calling function 'os2_delete', 1st argument 'd' value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:72:24: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:114:15: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assignment 'd=opendir("test.dir")', assigned value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:114:15: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:116:15: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assignment 'd=opendir("test.dir")', assigned value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:116:15: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:124:11: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/os2_delete.c:111:13: note: Assignment 'd=opendir("test.dir")', assigned value is 0 talloc-2.4.2/lib/replace/tests/os2_delete.c:121:9: note: Assuming condition is false talloc-2.4.2/lib/replace/tests/os2_delete.c:124:11: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/os2_delete.c:65:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/os2_delete.c:99:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/pytalloc.c:49:23: debug: Function::addArguments found argument 'ignored' with varid 0. [varid0] talloc-2.4.2/pytalloc.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] talloc-2.4.2/pytalloc.c:52:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] talloc-2.4.2/pytalloc.c:58:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] talloc-2.4.2/pytalloc.c:120:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_NotImplemented [valueFlowBailoutIncompleteVar] talloc-2.4.2/pytalloc.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_NotImplemented [valueFlowBailoutIncompleteVar] talloc-2.4.2/talloc.c:41:0: error: #error "TALLOC_VERSION_MAJOR != TALLOC_BUILD_VERSION_MAJOR" [preprocessorErrorDirective] talloc-2.4.2/talloc.c:41:2: error: #error "TALLOC_VERSION_MAJOR != TALLOC_BUILD_VERSION_MAJOR" [preprocessorErrorDirective] talloc-2.4.2/pytalloc_util.c:148:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] talloc-2.4.2/pytalloc_util.c:247:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] talloc-2.4.2/test_pytalloc.c:34:23: debug: Function::addArguments found argument 'ignored' with varid 0. [varid0] talloc-2.4.2/test_pytalloc.c:41:23: debug: Function::addArguments found argument 'ignored' with varid 0. [varid0] talloc-2.4.2/test_pytalloc.c:49:23: debug: Function::addArguments found argument 'ignored' with varid 0. [varid0] talloc-2.4.2/test_pytalloc.c:56:23: debug: Function::addArguments found argument 'ignored' with varid 0. [varid0] talloc-2.4.2/pytalloc.c:109:8: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/pytalloc.c:110:8: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/pytalloc.c:174:8: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/pytalloc.c:175:8: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/test_magic_differs_helper.c:9:26: style: Parameter 'argv' can be declared as const array [constParameter] talloc-2.4.2/test_pytalloc.c:216:2: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] talloc-2.4.2/test_pytalloc.c:220:2: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] talloc-2.4.2/pytalloc_util.c:327:51: style:inconclusive: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. [funcArgNamesDifferent] talloc-2.4.2/pytalloc.h:61:51: note: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. talloc-2.4.2/pytalloc_util.c:327:51: note: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. talloc-2.4.2/pytalloc_util.c:237:8: style: Variable 'type_obj' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/pytalloc_util.c:273:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/testsuite.c:134:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:155:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:211:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:263:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:307:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:358:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:405:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:559:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:628:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:692:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable el1 [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:722:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:785:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:808:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:837:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:882:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:940:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:976:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1021:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1065:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1106:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1139:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1165:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1311:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1392:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1448:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1512:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1541:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1574:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1606:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:2156:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:2208:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] talloc-2.4.2/testsuite.c:1408:7: style: Variable 'p1_2' is reassigned a value before the old one has been used. [redundantAssignment] talloc-2.4.2/testsuite.c:1406:7: note: p1_2 is assigned talloc-2.4.2/testsuite.c:1408:7: note: p1_2 is overwritten talloc-2.4.2/testsuite.c:1425:7: style: Variable 'p2_2' is reassigned a value before the old one has been used. [redundantAssignment] talloc-2.4.2/testsuite.c:1422:7: note: p2_2 is assigned talloc-2.4.2/testsuite.c:1425:7: note: p2_2 is overwritten talloc-2.4.2/testsuite.c:52:55: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] talloc-2.4.2/testsuite.c:385:34: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'fail_destructor' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] talloc-2.4.2/testsuite.c:445:28: note: You might need to cast the function pointer here talloc-2.4.2/testsuite.c:385:34: note: Parameter 'ptr' can be declared as pointer to const talloc-2.4.2/testsuite.c:954:39: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'test_loop_destructor' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] talloc-2.4.2/testsuite.c:973:36: note: You might need to cast the function pointer here talloc-2.4.2/testsuite.c:954:39: note: Parameter 'ptr' can be declared as pointer to const talloc-2.4.2/testsuite.c:992:49: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'test_realloc_parent_destructor' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] talloc-2.4.2/testsuite.c:1023:27: note: You might need to cast the function pointer here talloc-2.4.2/testsuite.c:992:49: note: Parameter 'ptr' can be declared as pointer to const talloc-2.4.2/testsuite.c:1043:38: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'fail_destructor_str' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] talloc-2.4.2/testsuite.c:1061:32: note: You might need to cast the function pointer here talloc-2.4.2/testsuite.c:1043:38: note: Parameter 'ptr' can be declared as pointer to const talloc-2.4.2/testsuite.c:2068:50: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'test_magic_protection_destructor' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] talloc-2.4.2/testsuite.c:2091:29: note: You might need to cast the function pointer here talloc-2.4.2/testsuite.c:2068:50: note: Parameter 'ptr' can be declared as pointer to const talloc-2.4.2/testsuite.c:2143:17: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/testsuite.c:429:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] talloc-2.4.2/testsuite.c:437:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] talloc-2.4.2/testsuite.c:492:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] talloc-2.4.2/testsuite.c:617:7: style: struct member 'el1::count' is never used. [unusedStructMember] talloc-2.4.2/testsuite.c:912:9: style: Variable 'p1' is allocated memory that is never used. [unusedAllocatedMemory] talloc-2.4.2/testsuite.c:913:9: style: Variable 'p2' is allocated memory that is never used. [unusedAllocatedMemory] talloc-2.4.2/testsuite.c:914:9: style: Variable 'p3' is allocated memory that is never used. [unusedAllocatedMemory] talloc-2.4.2/lib/replace/tests/testsuite.c:63:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:187:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:469:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:555:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:654:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:805:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:860:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:915:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:1004:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:1069:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __location__ [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:1124:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] talloc-2.4.2/lib/replace/tests/testsuite.c:933:6: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] talloc-2.4.2/lib/replace/tests/testsuite.c:949:6: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] talloc-2.4.2/lib/replace/tests/testsuite.c:1023:6: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] talloc-2.4.2/lib/replace/tests/testsuite.c:368:16: error: Memory leak: x [memleak] talloc-2.4.2/lib/replace/tests/testsuite.c:172:22: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/testsuite.c:170:12: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/testsuite.c:170:12: note: Assignment 'x=strdup("bla")', assigned value is 0 talloc-2.4.2/lib/replace/tests/testsuite.c:172:22: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/testsuite.c:271:15: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/testsuite.c:270:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/testsuite.c:270:13: note: Assignment 'x=strndup("bla",0)', assigned value is 0 talloc-2.4.2/lib/replace/tests/testsuite.c:271:15: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/testsuite.c:279:15: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/testsuite.c:278:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/testsuite.c:278:13: note: Assignment 'x=strndup("bla",2)', assigned value is 0 talloc-2.4.2/lib/replace/tests/testsuite.c:279:15: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/testsuite.c:296:15: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] talloc-2.4.2/lib/replace/tests/testsuite.c:295:13: note: Assuming allocation function fails talloc-2.4.2/lib/replace/tests/testsuite.c:295:13: note: Assignment 'x=strndup("bla",10)', assigned value is 0 talloc-2.4.2/lib/replace/tests/testsuite.c:296:15: note: Null pointer dereference talloc-2.4.2/lib/replace/tests/testsuite.c:251:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:252:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:253:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:254:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:255:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:256:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:257:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:258:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:259:2: style: Variable '_v' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:1063:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] talloc-2.4.2/lib/replace/tests/testsuite.c:1174:52: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] diff: head talloc-2.4.2/lib/replace/replace.h:45:2: error: #error -D__STDC_WANT_LIB_EXT1__=1 required [preprocessorErrorDirective] 2.17.0 talloc-2.4.2/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] 2.17.0 talloc-2.4.2/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] 2.17.0 talloc-2.4.2/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] 2.17.0 talloc-2.4.2/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] head talloc-2.4.2/talloc.c:41:2: error: #error "TALLOC_VERSION_MAJOR != TALLOC_BUILD_VERSION_MAJOR" [preprocessorErrorDirective] DONE