2026-05-02 13:31 ftp://ftp.de.debian.org/debian/pool/main/i/ibsim/ibsim_0.12.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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 -j2 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 261 255 elapsed-time: 1.3 1.1 head-timing-info: old-timing-info: head results: ibsim-0.12/ibsim/ibsim.c:85:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:143:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:171:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:194:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:259:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:289:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PORT_GID_PREFIX_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:327:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PORT_CAPMASK_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:357:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SW_PARTITION_ENFORCE_CAP_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:374:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_NODE_VENDORID_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:397:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_MAGIC [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:471:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:573:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_BASENAME [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:611:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:626:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:652:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBSIM_MAX_CLIENTS [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:669:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:716:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:107:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:183:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:343:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:500:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_NODE_GUID_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:875:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:959:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:1167:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_cmd.c:1229:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/ibsim.c:575:37: style: Condition 'sim_init_conn(socket_basename)<0' is always false [knownConditionTrueFalse] ibsim-0.12/ibsim/ibsim.c:575:19: note: Calling function 'sim_init_conn' returns 0 ibsim-0.12/ibsim/ibsim.c:575:37: note: Condition 'sim_init_conn(socket_basename)<0' is always false ibsim-0.12/ibsim/ibsim.c:764:27: style: Variable 'outfile' is reassigned a value before the old one has been used. [redundantAssignment] ibsim-0.12/ibsim/ibsim.c:763:10: note: outfile is assigned ibsim-0.12/ibsim/ibsim.c:764:27: note: outfile is overwritten ibsim-0.12/ibsim/ibsim.c:167:29: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:169:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/ibsim.c:182:80: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:294:38: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:302:42: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:339:59: style: Parameter 'ctl' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:634:37: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:645:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/ibsim.c:667:25: style: Parameter 'prog_name' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/ibsim.c:93:31: portability: '(void*)name_u->sun_path' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ibsim-0.12/ibsim/ibsim.c:99:41: portability: '(void*)name_u->sun_path' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ibsim-0.12/ibsim/sim_mad.c:179:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_TRID_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:194:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_RESPONSE_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:255:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_DRSMP_RPATH_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:264:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_RESPONSE_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:297:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_GET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:315:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_GET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:328:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_GET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:348:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_SET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:377:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SW_PARTITION_ENFORCE_CAP_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:414:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_SET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:440:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PORT_VL_ARBITRATION_LOW_CAP_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:468:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_GET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:498:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:710:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:731:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_SET [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:751:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:858:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:930:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_XMT_WAIT_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:954:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_SELECT_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1034:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_EXT_XMT_BYTES_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1054:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_EXT_PORT_SELECT_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1103:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_SELECT_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1141:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_RCV_LOCAL_PHY_ERR_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1207:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_XMT_INACT_DISC_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1257:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_OP_RCV_PKTS_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1289:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_XMIT_FLOW_PKTS_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1323:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_VL_OP_PACKETS0_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1383:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_VL_OP_DATA0_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1444:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS0_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1504:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PC_PORT_VL_XMIT_WAIT0_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1592:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1617:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1629:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1651:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1731:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1783:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1803:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1854:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1935:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1955:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1976:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_CLASSVER_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:2021:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_mad.c:1572:8: style: Condition '0&&lid!=-1' is always false [knownConditionTrueFalse] ibsim-0.12/ibsim/sim_mad.c:1573:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ibsim-0.12/ibsim/sim_mad.c:177:70: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_mad.c:249:46: style: Parameter 'rpc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_mad.c:261:26: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_mad.c:294:8: style: Variable 'node' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_mad.c:311:31: style: Parameter 'port' can be declared as pointer to const. However it seems that 'do_nodedesc' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:103:23: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:311:31: note: Parameter 'port' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:875:58: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_mad.c:1000:61: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_mad.c:1155:76: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_rcv_error_details_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1202:29: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1155:76: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1217:79: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_xmit_discard_details_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1252:32: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1217:79: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1263:74: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_op_rcv_counters_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1284:27: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1263:74: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1295:76: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_flow_ctl_counters_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1318:29: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1295:76: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1357:72: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_vl_op_packets_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1378:33: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1357:72: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1417:69: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_vl_op_data_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1439:22: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1417:69: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1478:89: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_vl_xmit_flow_ctl_update_errors_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1499:42: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1478:89: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1538:80: style: Parameter 'pc' can be declared as pointer to const. However it seems that 'pc_vl_xmit_wait_counters_sum' is a callback function, if 'pc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ibsim-0.12/ibsim/sim_mad.c:1562:11: note: You might need to cast the function pointer here ibsim-0.12/ibsim/sim_mad.c:1538:80: note: Parameter 'pc' can be declared as pointer to const ibsim-0.12/ibsim/sim_mad.c:1566:46: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_mad.c:1990:15: error: Uninitialized variable: req [uninitvar] ibsim-0.12/ibsim/sim_cmd.c:556:20: warning: Either the condition '(port->linkspeed)>8' is redundant or the array 'portlinkspeed[5]' is accessed at index 8, which is out of bounds. [arrayIndexOutOfBoundsCond] ibsim-0.12/ibsim/sim_cmd.c:556:20: note: Assuming that condition '(port->linkspeed)>8' is not redundant ibsim-0.12/ibsim/sim_cmd.c:556:20: note: Array index out of bounds ibsim-0.12/ibsim/sim_cmd.c:329:2: warning: Return value of function strsep() is not used. [ignoredReturnValue] ibsim-0.12/ibsim/sim_cmd.c:345:2: warning: Return value of function strsep() is not used. [ignoredReturnValue] ibsim-0.12/ibsim/sim_cmd.c:565:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ibsim-0.12/ibsim/sim_cmd.c:565:3: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ibsim-0.12/ibsim/sim_cmd.c:737:2: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ibsim-0.12/ibsim/sim_cmd.c:772:2: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ibsim-0.12/ibsim/sim_cmd.c:686:16: warning: Either the condition 'sp' is redundant or there is possible null pointer dereference: sp. [nullPointerRedundantCheck] ibsim-0.12/ibsim/sim_cmd.c:693:6: note: Assuming that condition 'sp' is not redundant ibsim-0.12/ibsim/sim_cmd.c:686:16: note: Null pointer dereference ibsim-0.12/ibsim/sim_cmd.c:167:24: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:292:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:377:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:507:44: style: Parameter 'sw' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_cmd.c:526:33: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_cmd.c:575:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:579:8: style: Variable 'nodeid' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:634:8: style: Variable 'node' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:706:19: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:706:24: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:709:8: style: Variable 'node' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:710:26: style: Variable 'toport' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:872:31: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_cmd.c:874:8: style: Variable 'vl_ptr' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_cmd.c:1183:33: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_cmd.c:1183:45: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_cmd.c:454:14: style: Variable 'portnum' is assigned a value that is never used. [unreadVariable] ibsim-0.12/ibsim/sim_net.c:263:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SW_LINEAR_FDB_CAP_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:339:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_NODE_NPORTS_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:542:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_so [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:575:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:612:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_NODE_PARTITION_CAP_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:1167:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:1273:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PORT_LOCAL_PORT_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:1313:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_PORT_VL_CAP_F [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:1437:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ibdebug [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:113:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SA_MCM_MGID_F [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:135:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SA_DATA_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:160:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SA_CLASS [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:183:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:201:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:223:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_SET [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:232:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_DELETE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:241:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_GET [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:255:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:289:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_TRID_F [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:304:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:352:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:405:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:448:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:496:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:537:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:572:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:609:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:732:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/mcast_storm.c:460:29: style: Condition 'recv_all(a,umad,len)<0' is always false [knownConditionTrueFalse] ibsim-0.12/tests/mcast_storm.c:460:14: note: Calling function 'recv_all' returns 0 ibsim-0.12/tests/mcast_storm.c:460:29: note: Condition 'recv_all(a,umad,len)<0' is always false ibsim-0.12/tests/mcast_storm.c:419:4: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ibsim-0.12/tests/mcast_storm.c:620:4: error: Common realloc mistake: 'list' nulled but not freed upon failure [memleakOnRealloc] ibsim-0.12/tests/mcast_storm.c:663:25: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] ibsim-0.12/tests/mcast_storm.c:615:21: error: Uninitialized variable: gid [uninitvar] ibsim-0.12/tests/mcast_storm.c:798:12: error: Uninitialized variable: gid [uninitvar] ibsim-0.12/tests/mcast_storm.c:71:10: style: struct member 'mcmember_params::scope' is never used. [unusedStructMember] ibsim-0.12/ibsim/sim_net.c:714:3: warning: Return value of function strsep() is not used. [ignoredReturnValue] ibsim-0.12/ibsim/sim_net.c:1079:2: warning: Return value of function strsep() is not used. [ignoredReturnValue] ibsim-0.12/ibsim/sim_net.c:549:38: style: Condition 'parse_port_link_width_and_speed(port,line_connection_type)' is always false [knownConditionTrueFalse] ibsim-0.12/ibsim/sim_net.c:549:38: note: Calling function 'parse_port_link_width_and_speed' returns 0 ibsim-0.12/ibsim/sim_net.c:549:38: note: Condition 'parse_port_link_width_and_speed(port,line_connection_type)' is always false ibsim-0.12/ibsim/sim_net.c:556:29: style: Condition 'parse_port_lid_and_lmc(port,line)' is always false [knownConditionTrueFalse] ibsim-0.12/ibsim/sim_net.c:556:29: note: Calling function 'parse_port_lid_and_lmc' returns 0 ibsim-0.12/ibsim/sim_net.c:556:29: note: Condition 'parse_port_lid_and_lmc(port,line)' is always false ibsim-0.12/ibsim/sim_net.c:557:38: style: Condition 'parse_port_link_width_and_speed(port,line_connection_type)' is always false [knownConditionTrueFalse] ibsim-0.12/ibsim/sim_net.c:557:38: note: Calling function 'parse_port_link_width_and_speed' returns 0 ibsim-0.12/ibsim/sim_net.c:557:38: note: Condition 'parse_port_link_width_and_speed(port,line_connection_type)' is always false ibsim-0.12/ibsim/sim_net.c:914:49: style: Condition 'parse_port_lid_and_lmc(port,line)<0' is always false [knownConditionTrueFalse] ibsim-0.12/ibsim/sim_net.c:914:36: note: Calling function 'parse_port_lid_and_lmc' returns 0 ibsim-0.12/ibsim/sim_net.c:914:49: note: Condition 'parse_port_lid_and_lmc(port,line)<0' is always false ibsim-0.12/ibsim/sim_net.c:386:13: warning: Either the condition 'line' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] ibsim-0.12/ibsim/sim_net.c:903:6: note: Assuming that condition 'line' is not redundant ibsim-0.12/ibsim/sim_net.c:898:29: note: Calling function 'parse_node_desc', 1st argument 'line' value is 0 ibsim-0.12/ibsim/sim_net.c:386:13: note: Null pointer dereference ibsim-0.12/ibsim/sim_net.c:542:23: style: Redundant initialization for 'line_connection_type'. The initialized value is overwritten before it is read. [redundantInitialization] ibsim-0.12/ibsim/sim_net.c:524:29: note: line_connection_type is initialized ibsim-0.12/ibsim/sim_net.c:542:23: note: line_connection_type is overwritten ibsim-0.12/ibsim/sim_net.c:864:6: style: Local variable 'ports' shadows outer variable [shadowVariable] ibsim-0.12/ibsim/sim.h:471:14: note: Shadowed declaration ibsim-0.12/ibsim/sim_net.c:864:6: note: Shadow variable ibsim-0.12/tests/query_many.c:67:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/query_many.c:92:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_F [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/query_many.c:112:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_METHOD_GET [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/query_many.c:144:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/query_many.c:191:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/query_many.c:215:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/query_many.c:273:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ibsim-0.12/ibsim/sim_net.c:294:55: style: Parameter 'nodedesc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:360:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:461:63: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:564:46: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:564:57: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:672:30: style: Parameter 'alias' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:686:25: style: Parameter 'base' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:688:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:925:41: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:929:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:952:39: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:954:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:966:38: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:968:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:980:48: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:982:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:994:38: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:996:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1014:38: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:1016:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1034:41: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:1036:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1054:42: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:1091:26: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:1093:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1365:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1366:8: style: Variable 'remote' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1481:23: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:1483:13: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1495:31: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/ibsim/sim_net.c:1497:13: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1511:13: style: Variable 'e' can be declared as pointer to const [constVariablePointer] ibsim-0.12/ibsim/sim_net.c:1523:28: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] ibsim-0.12/tests/query_many.c:35:39: style: Parameter 'path' can be declared as const array [constParameter] ibsim-0.12/tests/query_many.c:85:26: style: Parameter 'tv1' can be declared as pointer to const [constParameterPointer] ibsim-0.12/tests/query_many.c:85:47: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] ibsim-0.12/umad2sim/sim_client.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_MAGIC [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:113:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:164:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:191:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_CTL_CONNECT [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:222:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_BASENAME [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:285:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_CTL_SET_ISSM [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:297:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIM_CTL_GET_VENDOR [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:77:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SMP_DATA_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:78:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SMP_DATA_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:79:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SMP_DATA_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:80:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SMP_DATA_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:88:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:108:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:151:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:167:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:182:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:240:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:262:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:274:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_ATTR_NODE_INFO [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:281:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_ATTR_NODE_DESC [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:288:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_ATTR_SWITCH_INFO [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:295:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_ATTR_PORT_INFO [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:301:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_NODE_NPORTS_F [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:326:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_NODE_GUID_F [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:340:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SMP_DATA_OFFS [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:390:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:400:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_SMP_DATA_OFFS [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:454:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:511:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IB_MAD_SIZE [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:534:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ibsim-0.12/tests/subnet_discover.c:617:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ibsim-0.12/umad2sim/sim_client.c:118:18: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] ibsim-0.12/umad2sim/sim_client.c:164:9: style: Condition 'r<0' is always true [knownConditionTrueFalse] ibsim-0.12/umad2sim/sim_client.c:161:56: note: Assuming that condition '(r=connect(fd,(struct sockaddr*)name,size))>=0' is not redundant ibsim-0.12/umad2sim/sim_client.c:164:9: note: Condition 'r<0' is always true ibsim-0.12/umad2sim/sim_client.c:64:39: style: Parameter 'sc' can be declared as pointer to const [constParameterPointer] ibsim-0.12/umad2sim/sim_client.c:117:21: style: Variable 'hostp' can be declared as pointer to const [constVariablePointer] ibsim-0.12/umad2sim/sim_client.c:176:69: style: Parameter 'nodeid' can be declared as pointer to const [constParameterPointer] ibsim-0.12/umad2sim/sim_client.c:177:16: style: Parameter 'issm' can be declared as pointer to const [constParameterPointer] ibsim-0.12/umad2sim/sim_client.c:213:8: style: Variable 'connect_port' can be declared as pointer to const [constVariablePointer] ibsim-0.12/umad2sim/sim_client.c:133:31: portability: '(void*)name_u->sun_path' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ibsim-0.12/umad2sim/sim_client.c:139:41: portability: '(void*)name_u->sun_path' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ibsim-0.12/tests/subnet_discover.c:572:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ibsim-0.12/tests/subnet_discover.c:149:3: error: Common realloc mistake: 'tr_table' nulled but not freed upon failure [memleakOnRealloc] ibsim-0.12/umad2sim/umad2sim.c:134:2: error: failed to evaluate #if condition, undefined function-like macro invocation: __GLIBC_PREREQ( ... ) [syntaxError] ibsim-0.12/tests/subnet_discover.c:59:39: style: Parameter 'path' can be declared as const array [constParameter] ibsim-0.12/tests/subnet_discover.c:209:51: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] ibsim-0.12/tests/subnet_discover.c:298:50: style: Parameter 'path' can be declared as const array [constParameter] ibsim-0.12/tests/subnet_discover.c:569:23: style: Variable 'remote' can be declared as pointer to const [constVariablePointer] ibsim-0.12/tests/subnet_discover.c:340:28: portability: 'umad' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ibsim-0.12/tests/subnet_discover.c:492:34: portability: 'mad' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ibsim-0.12/tests/subnet_discover.c:495:36: portability: 'mad' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] diff: head ibsim-0.12/ibsim/sim_net.c:1365:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] head ibsim-0.12/ibsim/sim_net.c:1366:8: style: Variable 'remote' can be declared as pointer to const [constVariablePointer] head ibsim-0.12/ibsim/sim_net.c:294:55: style: Parameter 'nodedesc' can be declared as pointer to const [constParameterPointer] head ibsim-0.12/ibsim/sim_net.c:686:25: style: Parameter 'base' can be declared as pointer to const [constParameterPointer] head ibsim-0.12/ibsim/sim_net.c:688:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] head ibsim-0.12/umad2sim/sim_client.c:213:8: style: Variable 'connect_port' can be declared as pointer to const [constVariablePointer] DONE