2024-04-17 00:35 ftp://ftp.de.debian.org/debian/pool/main/g/gpx/gpx_2.6.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 161 114 elapsed-time: 6.9 5.4 head-timing-info: old-timing-info: head results: GPX-2.6.8/src/gpx/gpx-main.c:104:18: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] GPX-2.6.8/src/gpx/vector.c:77:44: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/vector.c:101:26: style: Parameter 'pv' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/winsio.c:41:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/winsio.c:96:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/winsio.c:83:24: style: Variable 'p' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/pymodule/gpxmodule.c:68:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:154:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:202:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:255:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:332:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:386:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:453:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:495:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:504:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING_STATE [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:519:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:538:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:556:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:569:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:609:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:660:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ESIOTIMEOUT [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:683:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:779:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/machine_config.c:95:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/machine_config.c:138:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/machine_config.c:241:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:176:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:437:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:922:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B0 [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:989:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:1026:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B0 [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:1141:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:1204:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/pymodule/gpxmodule.c:933:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] GPX-2.6.8/src/pymodule/gpxmodule.c:937:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] GPX-2.6.8/src/pymodule/gpxmodule.c:941:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] GPX-2.6.8/src/pymodule/gpxmodule.c:945:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] GPX-2.6.8/src/pymodule/gpxmodule.c:447:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/pymodule/gpxmodule.c:210:53: style: Parameter 'args' can be declared as pointer to const. However it seems that 'py_start' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] GPX-2.6.8/src/pymodule/gpxmodule.c:915:15: note: You might need to cast the function pointer here GPX-2.6.8/src/pymodule/gpxmodule.c:210:53: note: Parameter 'args' can be declared as pointer to const GPX-2.6.8/src/pymodule/gpxmodule.c:253:56: style: Parameter 'args' can be declared as pointer to const. However it seems that 'py_readnext' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] GPX-2.6.8/src/pymodule/gpxmodule.c:908:18: note: You might need to cast the function pointer here GPX-2.6.8/src/pymodule/gpxmodule.c:253:56: note: Parameter 'args' can be declared as pointer to const GPX-2.6.8/src/pymodule/gpxmodule.c:360:58: style: Parameter 'args' can be declared as pointer to const. However it seems that 'py_disconnect' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] GPX-2.6.8/src/pymodule/gpxmodule.c:906:20: note: You might need to cast the function pointer here GPX-2.6.8/src/pymodule/gpxmodule.c:360:58: note: Parameter 'args' can be declared as pointer to const GPX-2.6.8/src/pymodule/gpxmodule.c:638:53: style: Parameter 'args' can be declared as pointer to const. However it seems that 'py_abort' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] GPX-2.6.8/src/pymodule/gpxmodule.c:917:15: note: You might need to cast the function pointer here GPX-2.6.8/src/pymodule/gpxmodule.c:638:53: note: Parameter 'args' can be declared as pointer to const GPX-2.6.8/src/shared/machine_config.c:182:64: style:inconclusive: Function 'config_machine' argument 3 names different: declaration 'machine_type' definition 'mtype'. [funcArgNamesDifferent] GPX-2.6.8/src/shared/machine_config.h:74:64: note: Function 'config_machine' argument 3 names different: declaration 'machine_type' definition 'mtype'. GPX-2.6.8/src/shared/machine_config.c:182:64: note: Function 'config_machine' argument 3 names different: declaration 'machine_type' definition 'mtype'. GPX-2.6.8/src/shared/portable_endian.h:118:0: error: #error platform not supported [preprocessorErrorDirective] GPX-2.6.8/src/shared/s3g_stdio.c:92:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/s3g_stdio.c:147:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/s3g_stdio.c:217:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/s3g_stdio.c:307:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/s3g_stdio.c:379:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/shared/s3g_stdio.c:165:8: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] GPX-2.6.8/src/utils/machines.c:61:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable machines [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/utils/s3gdump.c:44:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/utils/s3gdump.c:68:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpxresp.c:452:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] GPX-2.6.8/src/gpx/gpxresp.c:667:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] GPX-2.6.8/src/gpx/gpxresp.c:907:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] GPX-2.6.8/src/gpx/gpxresp.c:96:5: error: Memory leak: s [memleak] GPX-2.6.8/src/gpx/gpxresp.c:1192:30: style:inconclusive: Function 'gpx_daemon' argument 2 names different: declaration 'create_daemon_port' definition 'create_port'. [funcArgNamesDifferent] GPX-2.6.8/src/gpx/gpx.h:614:34: note: Function 'gpx_daemon' argument 2 names different: declaration 'create_daemon_port' definition 'create_port'. GPX-2.6.8/src/gpx/gpxresp.c:1192:30: note: Function 'gpx_daemon' argument 2 names different: declaration 'create_daemon_port' definition 'create_port'. GPX-2.6.8/src/gpx/gpxresp.c:1192:102: style:inconclusive: Function 'gpx_daemon' argument 5 names different: declaration 'baudrate' definition 'speed'. [funcArgNamesDifferent] GPX-2.6.8/src/gpx/gpx.h:614:113: note: Function 'gpx_daemon' argument 5 names different: declaration 'baudrate' definition 'speed'. GPX-2.6.8/src/gpx/gpxresp.c:1192:102: note: Function 'gpx_daemon' argument 5 names different: declaration 'baudrate' definition 'speed'. GPX-2.6.8/src/gpx/gpxresp.c:108:29: style: Parameter 'psttb' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpxresp.c:108:42: style: Parameter 's' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpxresp.c:219:97: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpxresp.c:1055:24: style: Variable 'mapping' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpxresp.c:1170:36: style: Parameter 'gpx' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/shared/opt.c:356:10: style: Condition '!(*line)' is always false [knownConditionTrueFalse] GPX-2.6.8/src/shared/opt.c:214:52: style:inconclusive: Function 'opt_add_inner' argument 2 names different: declaration 'glen' definition 'lg'. [funcArgNamesDifferent] GPX-2.6.8/src/shared/opt.c:121:52: note: Function 'opt_add_inner' argument 2 names different: declaration 'glen' definition 'lg'. GPX-2.6.8/src/shared/opt.c:214:52: note: Function 'opt_add_inner' argument 2 names different: declaration 'glen' definition 'lg'. GPX-2.6.8/src/shared/opt.c:505:30: style:inconclusive: Function 'opt_loadfile' argument 1 names different: declaration 'optfile' definition 'fname'. [funcArgNamesDifferent] GPX-2.6.8/src/shared/opt.h:63:30: note: Function 'opt_loadfile' argument 1 names different: declaration 'optfile' definition 'fname'. GPX-2.6.8/src/shared/opt.c:505:30: note: Function 'opt_loadfile' argument 1 names different: declaration 'optfile' definition 'fname'. GPX-2.6.8/src/shared/opt.c:551:56: style:inconclusive: Function 'opt_get_str' argument 2 names different: declaration 'name' definition 'option'. [funcArgNamesDifferent] GPX-2.6.8/src/shared/opt.h:93:56: note: Function 'opt_get_str' argument 2 names different: declaration 'name' definition 'option'. GPX-2.6.8/src/shared/opt.c:551:56: note: Function 'opt_get_str' argument 2 names different: declaration 'name' definition 'option'. GPX-2.6.8/src/shared/opt.c:562:62: style:inconclusive: Function 'opt_get_double' argument 3 names different: declaration 'name' definition 'option'. [funcArgNamesDifferent] GPX-2.6.8/src/shared/opt.h:119:62: note: Function 'opt_get_double' argument 3 names different: declaration 'name' definition 'option'. GPX-2.6.8/src/shared/opt.c:562:62: note: Function 'opt_get_double' argument 3 names different: declaration 'name' definition 'option'. GPX-2.6.8/src/shared/opt.c:590:56: style:inconclusive: Function 'opt_get_int' argument 3 names different: declaration 'name' definition 'option'. [funcArgNamesDifferent] GPX-2.6.8/src/shared/opt.h:147:56: note: Function 'opt_get_int' argument 3 names different: declaration 'name' definition 'option'. GPX-2.6.8/src/shared/opt.c:590:56: note: Function 'opt_get_int' argument 3 names different: declaration 'name' definition 'option'. GPX-2.6.8/src/shared/opt.c:299:33: warning: Uninitialized variable: bufptr [uninitvar] GPX-2.6.8/src/shared/opt.c:279:13: note: Assignment 'bufptr=buf', assigned value is GPX-2.6.8/src/shared/opt.c:299:33: note: Uninitialized variable: bufptr GPX-2.6.8/src/gpx/gpx.c:111:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable machines [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:134:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable machine_aliases [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:169:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Machine [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:413:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:1427:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENDSTOP_IS_MIN [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:1573:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACHINE_TYPE_REPLICATOR_1 [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:1607:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACHINE_TYPE_REPLICATOR_1 [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:2169:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:2692:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eepromMaps [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:2768:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EepromMapping [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:2858:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_long [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:2903:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_string [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:2979:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:3285:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_null [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:3743:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_null [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:4676:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:5897:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:6570:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] GPX-2.6.8/src/gpx/gpx.c:5914:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] GPX-2.6.8/src/gpx/gpx.c:5983:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] GPX-2.6.8/src/gpx/gpx.c:6593:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] GPX-2.6.8/src/gpx/gpx.c:6594:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] GPX-2.6.8/src/gpx/gpx.c:6664:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] GPX-2.6.8/src/gpx/gpx.c:6665:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] GPX-2.6.8/src/gpx/gpx.c:70:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] GPX-2.6.8/src/gpx/gpx.c:80:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] GPX-2.6.8/src/gpx/gpx.c:331:8: style: The if condition is the same as the previous if condition [duplicateCondition] GPX-2.6.8/src/gpx/gpx.c:323:8: note: First condition GPX-2.6.8/src/gpx/gpx.c:331:8: note: Second condition GPX-2.6.8/src/gpx/gpx.c:383:8: style: The if condition is the same as the previous if condition [duplicateCondition] GPX-2.6.8/src/gpx/gpx.c:377:8: note: First condition GPX-2.6.8/src/gpx/gpx.c:383:8: note: Second condition GPX-2.6.8/src/gpx/gpx.c:3990:34: style: Condition '*start!=';'' is always true [knownConditionTrueFalse] GPX-2.6.8/src/gpx/gpx.c:6390:59: style: Condition '(bytes=write(sio->port,buffer,length))==-1' is always false [knownConditionTrueFalse] GPX-2.6.8/src/gpx/gpx.c:6401:69: style: Condition '(bytes=readport(sio->port,gpx->buffer.in,1))==-1' is always false [knownConditionTrueFalse] GPX-2.6.8/src/gpx/gpx.c:6417:73: style: Condition '(bytes=readport(sio->port,gpx->buffer.in+1,1))==-1' is always false [knownConditionTrueFalse] GPX-2.6.8/src/gpx/gpx.c:6428:86: style: Condition '(bytes=readport(sio->port,gpx->buffer.in+2,payload_length+1))==-1' is always false [knownConditionTrueFalse] GPX-2.6.8/src/gpx/gpx.c:6036:13: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6036:13: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6154:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6154:13: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6346:17: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6346:17: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6440:17: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6449:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6463:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6503:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6509:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6514:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6519:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6524:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6529:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6534:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6542:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6547:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6552:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6682:19: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6683:21: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:6684:9: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] GPX-2.6.8/src/gpx/gpx.c:4317:4: warning: Either the condition '!gpx' is redundant or there is possible null pointer dereference: gpx. [nullPointerRedundantCheck] GPX-2.6.8/src/gpx/gpx.c:4316:9: note: Assuming that condition '!gpx' is not redundant GPX-2.6.8/src/gpx/gpx.c:4317:4: note: Null pointer dereference GPX-2.6.8/src/gpx/gpx.c:163:9: style: Statements following 'return' will never be executed. [unreachableCode] GPX-2.6.8/src/gpx/gpx.c:157:43: style:inconclusive: Function 'gpx_set_machine' argument 2 names different: declaration 'machine' definition 'machine_type'. [funcArgNamesDifferent] GPX-2.6.8/src/gpx/gpx.h:601:47: note: Function 'gpx_set_machine' argument 2 names different: declaration 'machine' definition 'machine_type'. GPX-2.6.8/src/gpx/gpx.c:157:43: note: Function 'gpx_set_machine' argument 2 names different: declaration 'machine' definition 'machine_type'. GPX-2.6.8/src/gpx/gpx.c:3786:42: style: Local variable 'p' shadows outer argument [shadowArgument] GPX-2.6.8/src/gpx/gpx.c:3402:59: note: Shadowed declaration GPX-2.6.8/src/gpx/gpx.c:3786:42: note: Shadow variable GPX-2.6.8/src/gpx/gpx.c:160:14: style: Variable 'machine' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:533:41: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:563:51: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:618:24: style: Variable 'end' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:642:44: style: Parameter 'buildName' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:664:41: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:687:44: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:806:44: style: Parameter 'mm' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:844:33: style: Parameter 'gpx' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:1202:44: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:1228:46: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:1241:44: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2036:44: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2478:31: style: Parameter 'gpx' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2478:42: style: Parameter 'filament_id' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2724:42: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2765:47: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2821:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:2891:46: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:3282:41: style: Parameter 'type_name' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:3425:19: style: Variable 't' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:3450:19: style: Variable 't' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:4045:15: style: Variable 'inptr' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:4045:38: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:4558:27: style: Variable 'macro' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:4578:27: style: Variable 'macro' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:4591:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] GPX-2.6.8/src/gpx/gpx.c:5880:53: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'file_handler' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] GPX-2.6.8/src/gpx/gpx.c:5982:69: note: You might need to cast the function pointer here GPX-2.6.8/src/gpx/gpx.c:5880:53: note: Parameter 'buffer' can be declared as pointer to const GPX-2.6.8/src/gpx/gpx.c:6027:86: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:6139:31: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] GPX-2.6.8/src/gpx/gpx.c:5867:29: style: Variable 'command_emitted' is assigned a value that is never used. [unreadVariable] diff: head GPX-2.6.8/src/gpx/gpx.c:134:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable machine_aliases [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:1427:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENDSTOP_IS_MIN [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:1573:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACHINE_TYPE_REPLICATOR_1 [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:1607:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACHINE_TYPE_REPLICATOR_1 [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:169:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Machine [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:2169:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:2692:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eepromMaps [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:2768:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EepromMapping [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:2858:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_long [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:2903:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_string [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:2979:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:3285:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_null [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:3743:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable et_null [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:413:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:4676:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:5897:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpx.c:6570:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpxresp.c:1026:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B0 [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpxresp.c:1141:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpxresp.c:1170:36: style: Parameter 'gpx' can be declared as pointer to const [constParameterPointer] head GPX-2.6.8/src/gpx/gpxresp.c:1204:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpxresp.c:437:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpxresp.c:922:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B0 [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/gpxresp.c:989:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/gpx/winsio.c:96:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:154:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:202:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:255:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:332:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:386:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:453:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:495:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:504:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING_STATE [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:519:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:538:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:556:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:569:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:609:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:660:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ESIOTIMEOUT [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:683:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/pymodule/gpxmodule.c:779:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/shared/machine_config.c:138:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/shared/machine_config.c:241:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.13.0 GPX-2.6.8/src/shared/opt.c:542:13: style: Condition 'fp!=NULL' is always true [knownConditionTrueFalse] head GPX-2.6.8/src/shared/s3g_stdio.c:147:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/shared/s3g_stdio.c:217:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/shared/s3g_stdio.c:307:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/shared/s3g_stdio.c:379:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head GPX-2.6.8/src/utils/s3gdump.c:68:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] DONE