2025-07-07 06:24 ftp://ftp.de.debian.org/debian/pool/main/c/can-utils/can-utils_2023.03.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 0eb4dd8 (2025-07-06 21:35:35 +0200) count: 400 399 elapsed-time: 1.8 2.0 head-timing-info: old-timing-info: head results: can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:115:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_CALC_MAX_ERROR [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:175:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] can-utils-2023.03/bcmserver.c:165:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:123:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_CALC_MAX_ERROR [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:171:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_SYNC_SEG [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:85:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_KBPS [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:197:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:50:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_CALC_SYNC_SEG [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_CALC_SYNC_SEG [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:204:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:89:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_EFF_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:154:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_ERR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:273:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CANFD_MAX_DLEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:378:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_TIME [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:427:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:60:39: style: Variable 'brp' is assigned a value that is never used. [unreadVariable] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_19.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_SYNC_SEG [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_19.c:85:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KILO [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_19.c:197:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:68:39: style: Variable 'brp' is assigned a value that is never used. [unreadVariable] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 7) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 8) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 9) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 10) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 11) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 12) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 13) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 14) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:168:11: warning: %x in format string (no. 15) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:174:11: warning: %x in format string (no. 7) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:258:6: warning: %x in format string (no. 8) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:263:7: warning: %x in format string (no. 8) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] can-utils-2023.03/asc2log.c:146:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:168:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:174:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:258:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:263:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:479:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:513:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/asc2log.c:532:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/canbusload.c:97:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/canbusload.c:233:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] can-utils-2023.03/canbusload.c:309:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] can-utils-2023.03/asc2log.c:65:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/asc2log.c:74:42: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/asc2log.c:98:23: style: Parameter 'date_tv' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/asc2log.c:129:21: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/asc2log.c:235:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canframelen.c:168:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_EFF_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/canframelen.c:241:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CANFD_MTU [valueFlowBailoutIncompleteVar] can-utils-2023.03/canframelen.c:257:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_EFF_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/canbusload.c:195:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/canbusload.c:195:3: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/canbusload.c:195:3: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/canbusload.c:195:3: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/canbusload.c:195:3: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/canfdtest.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_RTR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:169:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:182:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:198:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable canfd_frame [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:218:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable canfd_frame [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:340:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:415:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/canbusload.c:395:4: style: Variable 'sigmask' is assigned an expression that holds the same value. [redundantAssignment] can-utils-2023.03/canbusload.c:391:15: note: savesigmask is assigned 'sigmask' here. can-utils-2023.03/canbusload.c:395:4: note: Variable 'sigmask' is assigned an expression that holds the same value. can-utils-2023.03/canbusload.c:95:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canbusload.c:244:14: style: Variable 'nptr' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/canbusload.c:391:17: warning: Uninitialized variable: sigmask [uninitvar] can-utils-2023.03/candump.c:124:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/candump.c:191:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFNAME [valueFlowBailoutIncompleteVar] can-utils-2023.03/candump.c:280:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangen.c:167:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangen.c:229:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOF_TXTIME_REPORT_ERRORS [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangen.c:319:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangen.c:386:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIMER_ABSTIME [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangen.c:421:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangen.c:459:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CANFD_MAX_DLEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/canframelen.c:182:48: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] can-utils-2023.03/canframelen.c:197:48: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] can-utils-2023.03/canframelen.c:155:45: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cangw.c:92:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:108:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_INV_FILTER [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGW_MODATTR_LEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:145:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGW_FDMODATTR_LEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:219:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGW_CRC8PRF_UNSPEC [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:225:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:335:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_MAX_DLEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:403:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CANFD_MAX_DLEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:475:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:713:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGW_MOD_FUNCS [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:127:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:119:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:51:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _max1 [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:148:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _max1 [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:140:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_19.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _max1 [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_19.c:140:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1285:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freq [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1413:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1488:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] can-utils-2023.03/canlogserver.c:90:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/canlogserver.c:123:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFNAME [valueFlowBailoutIncompleteVar] can-utils-2023.03/canlogserver.c:195:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] can-utils-2023.03/canfdtest.c:63:31: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/canplayer.c:206:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/canplayer.c:242:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] can-utils-2023.03/canlogserver.c:88:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cansend.c:61:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansend.c:105:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansend.c:121:3: error: Resource leak: s [resourceLeak] can-utils-2023.03/cansend.c:133:4: error: Resource leak: s [resourceLeak] can-utils-2023.03/cansend.c:139:4: error: Resource leak: s [resourceLeak] can-utils-2023.03/cansend.c:146:4: error: Resource leak: s [resourceLeak] can-utils-2023.03/cansend.c:161:3: error: Resource leak: s [resourceLeak] can-utils-2023.03/cansend.c:167:3: error: Resource leak: s [resourceLeak] can-utils-2023.03/cansend.c:157:45: error: Null pointer dereference [nullPointer] can-utils-2023.03/cansend.c:59:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cansequence.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansequence.c:81:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timeval [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansequence.c:207:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansequence.c:252:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/cangw.c:287:8: warning: %hhx in format string (no. 1) requires 'unsigned char *' but the argument type is 'const char *'. [invalidScanfArgType_int] can-utils-2023.03/cangw.c:106:21: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/cangw.c:169:40: style: Parameter 'cs_xor' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cangw.c:176:50: style: Parameter 'cs_crc8' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cangw.c:223:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cangw.c:282:18: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cangw.c:334:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/cangw.c:402:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/cangw.c:698:19: style: Variable 'rte' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/cangw.c:693:8: style: struct member 'Anonymous1::buf' is never used. [unusedStructMember] can-utils-2023.03/cangw.c:479:27: style: Variable 'src_ifindex' is assigned a value that is never used. [unreadVariable] can-utils-2023.03/cangw.c:480:27: style: Variable 'dst_ifindex' is assigned a value that is never used. [unreadVariable] can-utils-2023.03/canplayer.c:422:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/canplayer.c:508:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/canplayer.c:360:45: error: Null pointer dereference [nullPointer] can-utils-2023.03/canplayer.c:78:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:119:51: style: Parameter 'lhs' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:119:72: style: Parameter 'rhs' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:128:51: style: Parameter 'today' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:129:23: style: Parameter 'log' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:136:73: style: Parameter 'diff' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:137:22: style: Parameter 'log' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:159:21: style: Parameter 'logif_name' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:176:24: style: Parameter 'logif_name' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:193:26: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:193:50: style: Parameter 'txname' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:193:64: style: Parameter 'rxname' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/canplayer.c:261:8: style: Variable 'fret' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/cansequence.c:53:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/cansequence.c:165:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/cansequence.c:188:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/cansequence.c:240:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/cansequence.c:355:49: error: Null pointer dereference [nullPointer] can-utils-2023.03/cansequence.c:51:31: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cansequence.c:251:8: style: Variable 'interface' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/cansequence.c:261:16: style: Variable 'long_options' can be declared as const array [constVariable] can-utils-2023.03/cangen.c:174:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/cangen.c:189:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/cangen.c:662:45: error: Null pointer dereference [nullPointer] can-utils-2023.03/cangen.c:147:18: style: Local variable 'ts' shadows outer variable [shadowVariable] can-utils-2023.03/cangen.c:100:24: note: Shadowed declaration can-utils-2023.03/cangen.c:147:18: note: Shadow variable can-utils-2023.03/cangen.c:157:18: style: Local variable 'ts' shadows outer variable [shadowVariable] can-utils-2023.03/cangen.c:100:24: note: Shadowed declaration can-utils-2023.03/cangen.c:157:18: note: Shadow variable can-utils-2023.03/cangen.c:794:13: style: Local variable 'i' shadows outer variable [shadowVariable] can-utils-2023.03/cangen.c:468:6: note: Shadowed declaration can-utils-2023.03/cangen.c:794:13: note: Shadow variable can-utils-2023.03/cangen.c:165:31: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cangen.c:414:35: style: Parameter 'dataoptarg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpdump.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpdump.c:229:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:223:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:270:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:479:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_EFF_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:616:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_MTU [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:720:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:760:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:872:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:923:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] can-utils-2023.03/cansniffer.c:962:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable can_id [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotprecv.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotprecv.c:103:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpperf.c:68:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpperf.c:125:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotprecv.c:62:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/candump.c:235:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] can-utils-2023.03/isotpsend.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpsend.c:109:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/candump.c:718:10: style: Variable 'extra_info' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/isotpserver.c:103:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpserver.c:174:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpsend.c:298:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] can-utils-2023.03/isotpsend.c:63:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpsniffer.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpsniffer.c:99:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGSTAMP [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpsniffer.c:183:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpsniffer.c:112:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] can-utils-2023.03/isotpsniffer.c:69:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpsniffer.c:86:30: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpsniffer.c:88:39: style: Parameter 'candevice' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpperf.c:389:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/isotpperf.c:66:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpperf.c:421:9: warning: Uninitialized variable: ret [uninitvar] can-utils-2023.03/isotpperf.c:202:9: note: Assuming condition is false can-utils-2023.03/isotpperf.c:421:9: note: Uninitialized variable: ret can-utils-2023.03/isotptun.c:87:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotptun.c:100:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotptun.c:105:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotptun.c:158:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:92:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:140:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable J1939_IDLE_ADDR [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:169:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable J1939_IDLE_ADDR [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:196:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:240:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:262:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:285:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:304:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable J1939_IDLE_ADDR [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:356:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_SIGINFO [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:375:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ITIMER_REAL [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:395:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable J1939_IDLE_ADDR [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:439:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:479:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpserver.c:90:8: warning: %hhx in format string (no. 1) requires 'unsigned char *' but the argument type is 'const char *'. [invalidScanfArgType_int] can-utils-2023.03/isotpserver.c:85:18: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpserver.c:101:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cansniffer.c:726:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/cansniffer.c:875:3: error: Resource leak: fd [resourceLeak] can-utils-2023.03/cansniffer.c:926:3: error: Resource leak: fd [resourceLeak] can-utils-2023.03/cansniffer.c:174:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cansniffer.c:855:25: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/cansniffer.c:902:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotptun.c:327:9: warning: Either the condition '(t=open("/dev/net/tun",O_RDWR))<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] can-utils-2023.03/isotptun.c:324:41: note: Assuming that condition '(t=open("/dev/net/tun",O_RDWR))<0' is not redundant can-utils-2023.03/isotptun.c:327:9: note: Invalid argument can-utils-2023.03/isotptun.c:103:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/j1939cat.c:103:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_DONTWAIT [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:151:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:183:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NLA_HDRLEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:232:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMSG [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:301:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:330:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_ERRQUEUE [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:355:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLOUT [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:431:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _min1 [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:500:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:527:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:554:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:644:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOF_TIMESTAMPING_SOFTWARE [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:732:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939sr.c:107:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/isotpdump.c:372:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] can-utils-2023.03/isotpdump.c:424:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/isotpdump.c:454:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/isotpdump.c:69:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/isotpdump.c:94:8: style: Variable 'service_name' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/isotpdump.c:95:8: style: Variable 'flag' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/j1939sr.c:150:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/j1939sr.c:206:5: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] can-utils-2023.03/j1939spy.c:115:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] can-utils-2023.03/libj1939.c:126:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/libj1939.c:186:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable J1939_PGN_ADDRESS_CLAIMED [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:156:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] can-utils-2023.03/j1939acd.c:156:43: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] can-utils-2023.03/j1939acd.c:212:3: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/j1939acd.c:220:3: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/j1939acd.c:227:3: portability: %zi in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/j1939acd.c:272:3: portability: %zi in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/j1939acd.c:291:3: portability: %zi in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/j1939acd.c:291:3: portability: %zi in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/lib.c:160:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_MAX_DLEN [valueFlowBailoutIncompleteVar] can-utils-2023.03/lib.c:277:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_ERR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/lib.c:349:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_ERR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/lib.c:366:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_ERR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/lib.c:643:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_ERR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939acd.c:335:44: style: Parameter 'info' can be declared as pointer to const. However it seems that 'sighandler' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/j1939acd.c:355:19: note: You might need to cast the function pointer here can-utils-2023.03/j1939acd.c:335:44: note: Parameter 'info' can be declared as pointer to const can-utils-2023.03/j1939acd.c:335:56: style: Parameter 'vp' can be declared as pointer to const. However it seems that 'sighandler' is a callback function, if 'vp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/j1939acd.c:355:19: note: You might need to cast the function pointer here can-utils-2023.03/j1939acd.c:335:56: note: Parameter 'vp' can be declared as pointer to const can-utils-2023.03/log2asc.c:63:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/log2asc.c:84:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_ERR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/log2asc.c:145:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_EFF_MASK [valueFlowBailoutIncompleteVar] can-utils-2023.03/log2asc.c:190:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] can-utils-2023.03/libj1939.c:133:8: style: Local variable 'tmp' shadows outer variable [shadowVariable] can-utils-2023.03/libj1939.c:121:16: note: Shadowed declaration can-utils-2023.03/libj1939.c:133:8: note: Shadow variable can-utils-2023.03/libj1939.c:193:7: style: Variable 'str' is assigned a value that is never used. [unreadVariable] can-utils-2023.03/log2long.c:57:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] can-utils-2023.03/log2long.c:62:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:89:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:119:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:160:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:232:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:199:8: style: Condition 'err' is always false [knownConditionTrueFalse] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:198:35: note: Calling function 'do_dev_coredump_read_ring' returns 0 can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:198:35: note: Assignment 'err=do_dev_coredump_read_ring(priv,iter,&ring)', assigned value is 0 can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:199:8: note: Condition 'err' is always false can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:251:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:243:13: note: Assuming allocation function fails can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:243:13: note: Assignment 'dump=mmap(NULL,dump_len,PROT_READ,MAP_SHARED,fd,0x0)', assigned value is 0 can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:251:9: note: Null pointer dereference can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:225:17: style:inconclusive: Function 'mcp251xfd_dev_coredump_read' argument 3 names different: declaration 'file_path' definition 'dump_path'. [funcArgNamesDifferent] can-utils-2023.03/mcp251xfd/mcp251xfd-dump-userspace.h:48:17: note: Function 'mcp251xfd_dev_coredump_read' argument 3 names different: declaration 'file_path' definition 'dump_path'. can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:225:17: note: Function 'mcp251xfd_dev_coredump_read' argument 3 names different: declaration 'file_path' definition 'dump_path'. can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:229:8: style: Variable 'dump' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:165:48: portability: 'iter->start' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:180:36: portability: 'iter->start' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] can-utils-2023.03/mcp251xfd/mcp251xfd-dev-coredump.c:181:41: portability: 'iter->object_start' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] can-utils-2023.03/log2asc.c:175:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/log2asc.c:262:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/log2asc.c:268:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] can-utils-2023.03/log2asc.c:61:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/log2asc.c:74:70: style: Parameter 'extra_info' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/log2asc.c:78:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/log2asc.c:80:20: style: Variable 'cf' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/log2asc.c:121:66: style: Parameter 'extra_info' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/log2asc.c:125:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/log2asc.c:153:21: style: Variable 'ccf' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/j1939spy.c:274:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] can-utils-2023.03/j1939spy.c:147:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/j1939spy.c:189:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/j1939spy.c:290:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/j1939spy.c:225:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] can-utils-2023.03/j1939cat.c:704:5: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] can-utils-2023.03/mcp251xfd/mcp251xfd-main.c:21:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-main.c:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] can-utils-2023.03/j1939cat.c:574:8: style: Local variable 'ret' shadows outer variable [shadowVariable] can-utils-2023.03/j1939cat.c:555:6: note: Shadowed declaration can-utils-2023.03/j1939cat.c:574:8: note: Shadow variable can-utils-2023.03/j1939cat.c:109:56: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/j1939cat.c:144:27: style: Parameter 'cur' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/j1939cat.c:146:25: style: Variable 'stats' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/j1939cat.c:352:25: style: Variable 'stats' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/j1939cat.c:533:52: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/j1939cat.c:42:6: style: struct member 'j1939cat_stats::err' is never used. [unusedStructMember] can-utils-2023.03/mcp251xfd/mcp251xfd-main.c:19:31: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/mcp251xfd/mcp251xfd-main.c:39:37: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/mcp251xfd/mcp251xfd-main.c:72:16: style: Variable 'long_options' can be declared as const array [constVariable] can-utils-2023.03/mcp251xfd/mcp251xfd-regmap.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-regmap.c:76:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] can-utils-2023.03/mcp251xfd/mcp251xfd-dump.c:227:2: error: There is an unknown macro here somewhere. Configuration is required. If __stringify is a macro then please configure it. [unknownMacro] can-utils-2023.03/slcan_attach.c:60:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcan_attach.c:95:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_SLCAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/testj1939.c:68:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ITIMER_REAL [valueFlowBailoutIncompleteVar] can-utils-2023.03/testj1939.c:80:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_CAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcand.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcand.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcand.c:127:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B9600 [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcand.c:202:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_SLCAN [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcanpty.c:151:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable can_filter [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcanpty.c:340:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAN_RTR_FLAG [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcanpty.c:397:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcanpty.c:418:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] can-utils-2023.03/slcan_attach.c:58:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/slcan_attach.c:102:8: style: Variable 'speed' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcan_attach.c:103:8: style: Variable 'btr' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcan_attach.c:106:8: style: Variable 'tty' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcan_attach.c:107:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcand.c:421:9: style: Condition 'slcand_running' is always true [knownConditionTrueFalse] can-utils-2023.03/slcand.c:418:19: note: Assignment 'slcand_running=1', assigned value is 1 can-utils-2023.03/slcand.c:421:9: note: Condition 'slcand_running' is always true can-utils-2023.03/slcand.c:233:5: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] can-utils-2023.03/slcand.c:73:24: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/slcand.c:195:8: style: Variable 'speed' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcand.c:196:8: style: Variable 'uart_speed_str' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcand.c:199:8: style: Variable 'btr' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcand.c:201:8: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/slcanpty.c:445:3: error: Resource leak: p [resourceLeak] can-utils-2023.03/slcanpty.c:489:3: error: Resource leak: s [resourceLeak] can-utils-2023.03/slcanpty.c:497:3: error: Resource leak: s [resourceLeak] can-utils-2023.03/slcanpty.c:160:7: error: Null pointer dereference [nullPointer] can-utils-2023.03/slcanpty.c:493:45: error: Null pointer dereference [nullPointer] can-utils-2023.03/slcanpty.c:53:53: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/slcanpty.c:324:39: style: Parameter 'tstamp' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/slcanpty.c:458:9: style: Variable 'name_pts' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/testj1939.c:178:4: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:188:4: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:208:4: portability: %zi in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:218:5: portability: %zi in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:229:4: portability: %zi in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:247:5: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:247:5: portability: %zi in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:256:5: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:273:4: portability: %zi in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:273:4: portability: %zi in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:288:5: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/testj1939.c:59:2: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] can-utils-2023.03/lib.c:566:18: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] can-utils-2023.03/lib.c:594:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] can-utils-2023.03/lib.c:603:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] can-utils-2023.03/lib.c:619:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] can-utils-2023.03/lib.c:156:26: style: Parameter 'cs' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/lib.c:260:67: style: Parameter 'eol' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/lib.c:300:23: style: Variable 'ccf' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/lib.c:330:21: style: Variable 'ccf' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/lib.c:342:72: style: Parameter 'eol' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/lib.c:385:22: style: Variable 'ccf' can be declared as pointer to const [constVariablePointer] can-utils-2023.03/lib.c:685:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1313:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1318:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1326:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:184:31: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:210:50: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_nop' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1371:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:210:50: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:219:55: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_rcar_can' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:389:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:219:55: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:235:54: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_mcp251x' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:463:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:235:54: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:249:56: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_mcp251xfd' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:491:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:249:56: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:262:52: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_bxcan' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:566:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:262:52: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:278:51: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_at91' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:744:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:278:51: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:292:52: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_c_can' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:775:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:292:52: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:310:54: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_flexcan' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:797:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:310:54: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:325:51: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_mcan' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:998:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:325:51: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:342:54: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_sja1000' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1057:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:342:54: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:356:54: style: Parameter 'bt' can be declared as pointer to const. However it seems that 'printf_btr_ti_hecc' is a callback function, if 'bt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1085:17: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:356:54: note: Parameter 'bt' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:63:50: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_calc_bittiming_v2_6_31' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1254:21: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:63:50: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:158:51: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_fixup_bittiming_v2_6_31' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1255:22: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v2_6_31.c:158:51: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:55:50: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_calc_bittiming_v3_18' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1250:21: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:55:50: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:162:51: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_fixup_bittiming_v3_18' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1251:22: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v3_18.c:162:51: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:75:50: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_calc_bittiming_v4_8' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1246:21: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:75:50: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:191:51: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_fixup_bittiming_v4_8' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1247:22: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v4_8.c:191:51: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:66:43: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_calc_bittiming_v5_16' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1242:21: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:66:43: note: Parameter 'dev' can be declared as pointer to const can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:184:51: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'can_fixup_bittiming_v5_16' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] can-utils-2023.03/calc-bit-timing/can-calc-bit-timing.c:1243:22: note: You might need to cast the function pointer here can-utils-2023.03/calc-bit-timing/can-calc-bit-timing-v5_16.c:184:51: note: Parameter 'dev' can be declared as pointer to const diff: head can-utils-2023.03/j1939acd.c:156:43: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] DONE