2026-05-04 23:59 ftp://ftp.de.debian.org/debian/pool/main/s/sdparm/sdparm_1.12.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 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 385 371 elapsed-time: 14.7 12.9 head-timing-info: old-timing-info: head results: sdparm-1.12/lib/sg_cmds_basic.c:221:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:386:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:541:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:583:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:647:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:762:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:853:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic.c:402:9: style: Condition 'resp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_cmds_basic2.c:314:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic2.c:414:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic2.c:724:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic2.c:858:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_basic2.c:982:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:147:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:206:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:293:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:357:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:409:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:508:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:609:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:719:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:779:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:842:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:908:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1001:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1056:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1108:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1177:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1252:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1342:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1433:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1513:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1596:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1674:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:1768:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:2033:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:2362:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:2431:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_cmds_extra.c:2231:18: style: Condition 'sa>=5' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_cmds_extra.c:2229:12: note: Assuming that condition 'sa<=4' is not redundant sdparm-1.12/lib/sg_cmds_extra.c:2231:18: note: Condition 'sa>=5' is always true sdparm-1.12/lib/sg_lib.c:73:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:155:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:207:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:324:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_sense_key_desc [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:343:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_asc_ascq_range [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:544:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPC_SK_NO_SENSE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:580:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_pdt_strs [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:589:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_pdt_decay_arr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:598:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_transport_proto_strs [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:1208:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPROTO_UAS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:1729:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPC_SK_RECOVERED_ERROR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:1815:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_sense_key_desc [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2006:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_exit_str_arr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2051:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OK_FALSE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2070:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2078:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2089:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OS_BASE_ERR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2131:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_scsi_sense_hdr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2181:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NO_SENSE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2254:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2382:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_nvm_cmd_arr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2495:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_scsi_feature_sets [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2629:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_cmd_status_arr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2660:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_cmd_status_arr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2870:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:2877:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:3491:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:3800:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:3857:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:3883:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_version_str [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_lib.c:337:38: style: Variable 'ei2p' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_lib.c:3142:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_lib.c:3266:12: style: Variable 'commap' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_lib.c:3305:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_pt_freebsd.c:150:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:169:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:320:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:360:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:389:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:428:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:448:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:479:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:500:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:596:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_OUT [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:617:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_IN [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:693:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:810:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:836:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_BOTH [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:857:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_BOTH [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:1016:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:2405:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:2444:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_freebsd.c:752:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_freebsd.c:431:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:451:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:473:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:503:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:540:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:827:19: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:881:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:901:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:1011:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:1036:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_freebsd.c:227:20: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] sdparm-1.12/lib/sg_pt_freebsd.c:227:20: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] sdparm-1.12/lib/sg_pt_freebsd.c:255:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdparm-1.12/lib/sg_pt_freebsd.c:125:39: style: Parameter 'ptp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_freebsd.c:356:33: style: Variable 'fdc_p' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_pt_freebsd.c:639:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_freebsd.c:672:39: style: Parameter 'objp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_freebsd.c:2402:35: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_freebsd.c:2442:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_freebsd.c:507:13: error: Uninitialized variable: ptp [legacyUninitvar] sdparm-1.12/lib/sg_pt_freebsd.c:513:27: error: Uninitialized variable: ptp [legacyUninitvar] sdparm-1.12/lib/sg_pt_freebsd.c:701:17: style: Variable 'dev_han' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_linux.c:136:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:194:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:268:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:348:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:360:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:374:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:392:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_pt_linux_scsi [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:429:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:462:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_pt_linux_scsi [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:549:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_VERSION_NUM [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:977:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:1042:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_NONE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:1102:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:1133:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_linux.c:439:18: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] sdparm-1.12/lib/sg_pt_linux.c:431:41: note: Address of variable taken here. sdparm-1.12/lib/sg_pt_linux.c:439:18: note: Deallocating memory that was not dynamically allocated sdparm-1.12/lib/sg_pt_linux.c:594:21: style: The statement 'if (!sg_duration_set_nano) sg_duration_set_nano=true' is logically equivalent to 'sg_duration_set_nano=true'. [duplicateConditionalAssign] sdparm-1.12/lib/sg_pt_linux.c:595:42: note: Assignment 'sg_duration_set_nano=true' sdparm-1.12/lib/sg_pt_linux.c:594:21: note: Condition '!sg_duration_set_nano' is redundant sdparm-1.12/lib/sg_pt_linux.c:438:13: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_linux.c:453:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_linux.c:485:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_linux.c:797:15: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_linux.c:854:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_linux.c:865:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_linux.c:143:19: warning:inconclusive: Width 126 given in format string (no. 1) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sdparm-1.12/lib/sg_pt_linux.c:148:18: warning:inconclusive: Width 126 given in format string (no. 2) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sdparm-1.12/lib/sg_pt_linux.c:131:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_pt_linux.c:504:16: style: struct member 'sg_extended_info::sei_rd_mask' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:506:16: style: struct member 'sg_extended_info::ctl_flags_rd_mask' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:508:16: style: struct member 'sg_extended_info::read_value' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:510:16: style: struct member 'sg_extended_info::reserved_sz' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:511:16: style: struct member 'sg_extended_info::tot_fd_thresh' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:512:16: style: struct member 'sg_extended_info::minor_index' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:513:16: style: struct member 'sg_extended_info::share_fd' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:514:16: style: struct member 'sg_extended_info::sgat_elem_sz' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux.c:515:16: style: struct member 'sg_extended_info::pad_to_96' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_linux_nvme.c:1912:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] sdparm-1.12/lib/sg_pt_osf1.c:83:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:97:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:183:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:217:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:232:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:289:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_IN [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:305:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_OUT [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:361:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XPT_REL_SIMQ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:383:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADDL_SENSE_LENGTH [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:486:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:651:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_osf1.c:201:14: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] sdparm-1.12/lib/sg_pt_osf1.c:198:36: note: Address of variable taken here. sdparm-1.12/lib/sg_pt_osf1.c:201:14: note: Deallocating memory that was not dynamically allocated sdparm-1.12/lib/sg_pt_osf1.c:125:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:180:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:214:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:271:13: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:354:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:355:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:434:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:435:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sdparm-1.12/lib/sg_pt_osf1.c:200:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_osf1.c:211:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_osf1.c:226:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_osf1.c:612:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_osf1.c:342:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_osf1.c:343:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_osf1.c:310:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_osf1.c:348:30: style: Variable 'ptp' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_pt_osf1.c:349:30: style: Variable 'fdchan' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_pt_osf1.c:379:30: style: Variable 'fdchan' can be declared as pointer to const [constVariablePointer] sdparm-1.12/lib/sg_pt_osf1.c:645:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_osf1.c:342:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_osf1.c:343:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_osf1.c:348:34: style: Variable 'ptp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_osf1.c:380:9: style: Unused variable: len [unusedVariable] sdparm-1.12/lib/sg_pt_osf1.c:380:14: style: Unused variable: retval [unusedVariable] sdparm-1.12/lib/sg_pt_solaris.c:59:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:69:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:91:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:108:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:145:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:161:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:217:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_READ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:234:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_WRITE [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_warnings_strm [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:347:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:530:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_solaris.c:128:14: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] sdparm-1.12/lib/sg_pt_solaris.c:125:39: note: Address of variable taken here. sdparm-1.12/lib/sg_pt_solaris.c:128:14: note: Deallocating memory that was not dynamically allocated sdparm-1.12/lib/sg_pt_solaris.c:127:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_solaris.c:138:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_solaris.c:155:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_solaris.c:494:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] sdparm-1.12/lib/sg_pt_solaris.c:72:15: style: Redundant assignment of 'flags_arg' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:244:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:245:13: style: Redundant assignment of 'pack_id' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:253:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:254:9: style: Redundant assignment of 'tag' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:264:14: style: Redundant assignment of 'tmf_code' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:273:15: style: Redundant assignment of 'attribute' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:274:14: style: Redundant assignment of 'priority' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:281:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:282:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:451:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:503:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_solaris.c:473:47: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_solaris.c:524:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_solaris.c:72:15: style: Variable 'flags_arg' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:244:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:245:13: style: Variable 'pack_id' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:253:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:254:9: style: Variable 'tag' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:264:14: style: Variable 'tmf_code' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:273:15: style: Variable 'attribute' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:274:14: style: Variable 'priority' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:281:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:282:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:451:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_solaris.c:503:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_win32.c:294:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:328:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADF [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:374:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_SHARE_READ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:493:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:524:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:592:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOCTL_STORAGE_QUERY_PROPERTY [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:639:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:683:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:771:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:847:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:878:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:960:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_IN [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:979:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_OUT [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:1055:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:1131:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:1235:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:1288:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_TRANSPORT_ERR [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:3128:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:3143:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] sdparm-1.12/lib/sg_pt_win32.c:331:22: portability: Undefined behaviour, when 'index' is 31 the pointer arithmetic 'handle_arr+index' is out of bounds. [pointerOutOfBoundsCond] sdparm-1.12/lib/sg_pt_win32.c:324:31: note: Assuming that condition 'index>=32' is not redundant sdparm-1.12/lib/sg_pt_win32.c:331:22: note: Pointer arithmetic overflow sdparm-1.12/lib/sg_pt_win32.c:1230:37: warning: Either the condition 'vp' is redundant or there is possible null pointer dereference: vp. [nullPointerRedundantCheck] sdparm-1.12/lib/sg_pt_win32.c:1233:12: note: Assuming that condition 'vp' is not redundant sdparm-1.12/lib/sg_pt_win32.c:1230:37: note: Null pointer dereference sdparm-1.12/lib/sg_pt_win32.c:349:30: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] sdparm-1.12/lib/sg_pt_win32.c:1037:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_win32.c:1038:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] sdparm-1.12/lib/sg_pt_win32.c:1233:24: style: Redundant initialization for 'psp'. The initialized value is overwritten before it is read. [redundantInitialization] sdparm-1.12/lib/sg_pt_win32.c:1230:35: note: psp is initialized sdparm-1.12/lib/sg_pt_win32.c:1233:24: note: psp is overwritten sdparm-1.12/lib/sg_pt_win32.c:1001:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_win32.c:3124:35: style: Parameter 'psp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_win32.c:3124:62: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_win32.c:3137:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/lib/sg_pt_win32.c:728:9: warning: Size of pointer 'vp' used instead of size of its data. [pointerSize] sdparm-1.12/lib/sg_pt_win32.c:299:19: error: Uninitialized variable: lpMsgBuf [uninitvar] sdparm-1.12/lib/sg_pt_win32.c:115:10: style: union member 'STORAGE_DEVICE_DESCRIPTOR_DATA::raw' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_win32.c:120:10: style: union member 'STORAGE_DEVICE_UID_DATA::raw' is never used. [unusedStructMember] sdparm-1.12/lib/sg_pt_win32.c:1037:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/lib/sg_pt_win32.c:1038:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] sdparm-1.12/src/chk_sdparm_data.c:109:19: style: Variable 'second_j' is assigned a value that is never used. [unreadVariable] sdparm-1.12/src/chk_sdparm_data.c:115:45: style: Variable 'jp' is assigned a value that is never used. [unreadVariable] sdparm-1.12/src/getopt_long.c:253:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sdparm-1.12/src/getopt_long.c:364:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sdparm-1.12/src/getopt_long.c:111:9: style:inconclusive: Function 'gcd' argument 1 names different: declaration '' definition 'a'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:111:16: style:inconclusive: Function 'gcd' argument 2 names different: declaration '' definition 'b'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:131:18: style:inconclusive: Function 'permute_args' argument 1 names different: declaration '' definition 'panonopt_start'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:131:38: style:inconclusive: Function 'permute_args' argument 2 names different: declaration '' definition 'panonopt_end'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:131:56: style:inconclusive: Function 'permute_args' argument 3 names different: declaration '' definition 'opt_end'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:132:21: style:inconclusive: Function 'permute_args' argument 4 names different: declaration '' definition 'nargv'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:170:21: style:inconclusive: Function 'getopt_internal' argument 1 names different: declaration '' definition 'nargc'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:170:42: style:inconclusive: Function 'getopt_internal' argument 2 names different: declaration '' definition 'nargv'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:170:61: style:inconclusive: Function 'getopt_internal' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:306:17: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'nargc'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:306:38: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'nargv'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:306:57: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:307:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:307:46: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] sdparm-1.12/src/getopt_long.c:172:8: style: Variable 'oli' can be declared as pointer to const [constVariablePointer] sdparm-1.12/src/getopt_long.c:317:9: style: Variable 'current_argv' can be declared as pointer to const [constVariablePointer] sdparm-1.12/src/sdparm.c:545:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:865:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:940:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:1086:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:1330:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:1629:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:1822:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:1973:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:2073:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:2143:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:2239:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPROTO_SAS [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:2440:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PDT_WO [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:2477:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:2583:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm.c:385:32: portability: Undefined behaviour, when 'len' is 129 the pointer arithmetic 'd+len' is out of bounds. [pointerOutOfBoundsCond] sdparm-1.12/src/sdparm.c:384:37: note: Assuming that condition '(int)sizeof(d)>=(len-1)' is not redundant sdparm-1.12/src/sdparm.c:385:32: note: Pointer arithmetic overflow sdparm-1.12/src/sdparm.c:1019:12: warning: Identical condition and return expression 'res', return value is always 0 [identicalConditionAfterEarlyExit] sdparm-1.12/src/sdparm.c:1013:9: note: If condition 'res' is true, the function will return/exit sdparm-1.12/src/sdparm.c:1019:12: note: Returning identical expression 'res' sdparm-1.12/src/sdparm.c:2432:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] sdparm-1.12/src/sdparm.c:2415:9: note: outer condition: res sdparm-1.12/src/sdparm.c:2432:13: note: identical inner condition: res sdparm-1.12/src/sdparm.c:2322:23: warning:inconclusive: Width 62 given in format string (no. 4) is smaller than destination buffer 'vb[64]'. [invalidScanfFormatWidth_smaller] sdparm-1.12/src/sdparm.c:2327:27: warning:inconclusive: Width 62 given in format string (no. 4) is smaller than destination buffer 'vb[64]'. [invalidScanfFormatWidth_smaller] sdparm-1.12/src/sdparm.c:2331:27: warning:inconclusive: Width 62 given in format string (no. 4) is smaller than destination buffer 'vb[64]'. [invalidScanfFormatWidth_smaller] sdparm-1.12/src/sdparm.c:2335:27: warning:inconclusive: Width 62 given in format string (no. 4) is smaller than destination buffer 'vb[64]'. [invalidScanfFormatWidth_smaller] sdparm-1.12/src/sdparm.c:1119:9: style: Variable 'mpi' is assigned an expression that holds the same value. [redundantAssignment] sdparm-1.12/src/sdparm.c:1088:14: note: last_mpi is assigned 'mpi' here. sdparm-1.12/src/sdparm.c:1119:9: note: Variable 'mpi' is assigned an expression that holds the same value. sdparm-1.12/src/sdparm.c:415:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sdparm-1.12/src/sdparm.c:770:27: style: Parameter 'cur_mp' can be declared as pointer to const [constParameterPointer] sdparm-1.12/src/sdparm.c:2315:33: warning: Shifting signed 64-bit value by 63 bits is undefined behaviour. See condition at line 2313. [shiftTooManyBitsSigned] sdparm-1.12/src/sdparm.c:2313:31: note: Assuming that condition 'mpi->num_bits<64' is not redundant sdparm-1.12/src/sdparm.c:2315:33: note: Shift sdparm-1.12/src/sdparm.c:2383:34: warning: Shifting signed 64-bit value by 63 bits is undefined behaviour. See condition at line 2380. [shiftTooManyBitsSigned] sdparm-1.12/src/sdparm.c:2380:35: note: Assuming that condition 'ivp->mpi.num_bits<64' is not redundant sdparm-1.12/src/sdparm.c:2383:34: note: Shift sdparm-1.12/src/sdparm.c:681:25: style: Variable 'prt_pre' is assigned a value that is never used. [unreadVariable] sdparm-1.12/src/sdparm.c:810:16: style: Variable 'broke' is assigned a value that is never used. [unreadVariable] sdparm-1.12/src/sdparm_access.c:139:21: style:inconclusive: Function 'sdp_get_mpage_t' argument 5 names different: declaration 'vendor_num' definition 'vendor_id'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:417:65: note: Function 'sdp_get_mpage_t' argument 5 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:139:21: note: Function 'sdp_get_mpage_t' argument 5 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:166:26: style:inconclusive: Function 'sdp_get_mpt_with_str' argument 5 names different: declaration 'vendor_num' definition 'vendor_id'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:419:65: note: Function 'sdp_get_mpt_with_str' argument 5 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:166:26: note: Function 'sdp_get_mpt_with_str' argument 5 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:166:68: style:inconclusive: Function 'sdp_get_mpt_with_str' argument 8 names different: declaration 'max_b_len' definition 'b_len'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:420:48: note: Function 'sdp_get_mpt_with_str' argument 8 names different: declaration 'max_b_len' definition 'b_len'. sdparm-1.12/src/sdparm_access.c:166:68: note: Function 'sdp_get_mpt_with_str' argument 8 names different: declaration 'max_b_len' definition 'b_len'. sdparm-1.12/src/sdparm_access.c:217:62: style:inconclusive: Function 'sdp_find_mpt_by_acron' argument 3 names different: declaration 'vendor_num' definition 'vendor_id'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:422:39: note: Function 'sdp_find_mpt_by_acron' argument 3 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:217:62: note: Function 'sdp_find_mpt_by_acron' argument 3 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:308:25: style:inconclusive: Function 'sdp_get_vendor_name' argument 1 names different: declaration 'vendor_num' definition 'vendor_id'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:429:38: note: Function 'sdp_get_vendor_name' argument 1 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:308:25: note: Function 'sdp_get_vendor_name' argument 1 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:332:25: style:inconclusive: Function 'sdp_get_vendor_pair' argument 1 names different: declaration 'vendor_num' definition 'vendor_id'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:431:59: note: Function 'sdp_get_vendor_pair' argument 1 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:332:25: note: Function 'sdp_get_vendor_pair' argument 1 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:349:48: style:inconclusive: Function 'sdp_find_mitem_by_acron' argument 2 names different: declaration 'from' definition 'from_p'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:433:23: note: Function 'sdp_find_mitem_by_acron' argument 2 names different: declaration 'from' definition 'from_p'. sdparm-1.12/src/sdparm_access.c:349:48: note: Function 'sdp_find_mitem_by_acron' argument 2 names different: declaration 'from' definition 'from_p'. sdparm-1.12/src/sdparm_access.c:350:29: style:inconclusive: Function 'sdp_find_mitem_by_acron' argument 4 names different: declaration 'vendor_num' definition 'vendor_id'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:433:51: note: Function 'sdp_find_mitem_by_acron' argument 4 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_access.c:350:29: note: Function 'sdp_find_mitem_by_acron' argument 4 names different: declaration 'vendor_num' definition 'vendor_id'. sdparm-1.12/src/sdparm_cmd.c:254:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NOT_READY [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_cmd.c:458:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_cmd.c:448:57: style:inconclusive: Function 'sdp_process_cmd' argument 5 names different: declaration 'opts' definition 'op'. [funcArgNamesDifferent] sdparm-1.12/src/sdparm.h:463:74: note: Function 'sdp_process_cmd' argument 5 names different: declaration 'opts' definition 'op'. sdparm-1.12/src/sdparm_cmd.c:448:57: note: Function 'sdp_process_cmd' argument 5 names different: declaration 'opts' definition 'op'. sdparm-1.12/src/sdparm_cmd.c:413:17: style: Variable 'len' is assigned a value that is never used. [unreadVariable] sdparm-1.12/src/sdparm_vpd.c:74:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:283:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:313:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:356:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:440:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:482:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_UNBOUNDED_64BIT [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:698:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_UNBOUNDED_32BIT [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:862:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:904:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:952:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:987:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1033:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1178:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1243:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1285:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1319:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1441:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1505:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1569:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1582:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1610:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1666:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1690:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1714:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1741:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1809:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1880:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1904:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:2008:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:2104:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_vpd.c:1299:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdparm-1.12/src/sdparm_vpd.c:1299:13: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdparm-1.12/src/sdparm_vpd.c:1303:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdparm-1.12/src/sdparm_vpd.c:1515:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdparm-1.12/src/sdparm_vpd.c:1634:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdparm-1.12/src/sdparm_vpd.c:1841:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sdparm-1.12/src/sdparm_vpd.c:1847:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sdparm-1.12/src/sdparm_vpd.c:1848:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sdparm-1.12/src/sdparm_vpd.c:1849:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sdparm-1.12/src/sdparm_vpd.c:1564:36: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sdparm-1.12/src/sdparm_vpd.c:1577:38: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sdparm-1.12/src/sdparm_vpd.c:1660:42: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sdparm-1.12/src/sdparm_vpd.c:1951:27: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sdparm-1.12/src/sdparm_vpd.c:825:21: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] sdparm-1.12/src/sdparm_vpd.c:827:21: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] sdparm-1.12/src/sdparm_vpd.c:839:21: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] sdparm-1.12/src/sdparm_wscan.c:124:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:223:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable METHOD_BUFFERED [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:251:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropertyExistsQuery [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:339:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:408:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:446:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:498:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:546:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:675:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sdparm-1.12/src/sdparm_wscan.c:590:13: style: Condition 'k' is always false [knownConditionTrueFalse] sdparm-1.12/src/sdparm_wscan.c:589:21: note: Calling function 'enum_pds' returns 0 sdparm-1.12/src/sdparm_wscan.c:589:21: note: Assignment 'k=enum_pds()', assigned value is 0 sdparm-1.12/src/sdparm_wscan.c:590:13: note: Condition 'k' is always false sdparm-1.12/src/sdparm_wscan.c:593:13: style: Condition 'k' is always false [knownConditionTrueFalse] sdparm-1.12/src/sdparm_wscan.c:592:24: note: Calling function 'enum_cdroms' returns 0 sdparm-1.12/src/sdparm_wscan.c:592:24: note: Assignment 'k=enum_cdroms()', assigned value is 0 sdparm-1.12/src/sdparm_wscan.c:593:13: note: Condition 'k' is always false sdparm-1.12/src/sdparm_wscan.c:596:13: style: Condition 'k' is always false [knownConditionTrueFalse] sdparm-1.12/src/sdparm_wscan.c:595:23: note: Calling function 'enum_tapes' returns 0 sdparm-1.12/src/sdparm_wscan.c:595:23: note: Assignment 'k=enum_tapes()', assigned value is 0 sdparm-1.12/src/sdparm_wscan.c:596:13: note: Condition 'k' is always false sdparm-1.12/src/sdparm_wscan.c:599:13: style: Condition 'k' is always false [knownConditionTrueFalse] sdparm-1.12/src/sdparm_wscan.c:598:25: note: Calling function 'enum_volumes' returns 0 sdparm-1.12/src/sdparm_wscan.c:598:25: note: Assignment 'k=enum_volumes(letter)', assigned value is 0 sdparm-1.12/src/sdparm_wscan.c:599:13: note: Condition 'k' is always false sdparm-1.12/src/sdparm_wscan.c:128:19: error: Uninitialized variable: lpMsgBuf [uninitvar] diff: head sdparm-1.12/src/getopt_long.c:111:16: style:inconclusive: Function 'gcd' argument 2 names different: declaration '' definition 'b'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:111:9: style:inconclusive: Function 'gcd' argument 1 names different: declaration '' definition 'a'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:131:18: style:inconclusive: Function 'permute_args' argument 1 names different: declaration '' definition 'panonopt_start'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:131:38: style:inconclusive: Function 'permute_args' argument 2 names different: declaration '' definition 'panonopt_end'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:131:56: style:inconclusive: Function 'permute_args' argument 3 names different: declaration '' definition 'opt_end'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:132:21: style:inconclusive: Function 'permute_args' argument 4 names different: declaration '' definition 'nargv'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:170:21: style:inconclusive: Function 'getopt_internal' argument 1 names different: declaration '' definition 'nargc'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:170:42: style:inconclusive: Function 'getopt_internal' argument 2 names different: declaration '' definition 'nargv'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:170:61: style:inconclusive: Function 'getopt_internal' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:306:17: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'nargc'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:306:38: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'nargv'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:306:57: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:307:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] head sdparm-1.12/src/getopt_long.c:307:46: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] DONE