2024-04-22 02:29 ftp://ftp.de.debian.org/debian/pool/main/s/sg3-utils/sg3-utils_1.46.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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 1229 1229 elapsed-time: 33.4 33.5 head-timing-info: old-timing-info: head results: sg3_utils-1.46/archive/llseek.c:121:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/scsi_inquiry.c:87:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_identify.c:72:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_identify.c:114:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_phy_event.c:82:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_phy_event.c:202:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_set_features.c:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_set_features.c:133:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/scsi_inquiry.c:62:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_excl.c:82:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_excl.c:55:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_sat_chk_power.c:127:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg__sat_identify.c:89:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg__sat_set_features.c:100:27: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/examples/sg_sat_smart_rd_data.c:90:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_simple1.c:85:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_simple1.c:58:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_simple16.c:64:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_simple16.c:40:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_sat_chk_power.c:107:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_simple3.c:88:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_simple2.c:82:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_sat_smart_rd_data.c:69:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg__sat_phy_event.c:153:12: style: Variable 'device_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_simple4.c:84:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_simple5.c:75:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sg_simple3.c:61:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_simple4.c:57:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sg_simple5.c:129:18: style: Condition 'verbose' is always true [knownConditionTrueFalse] sg3_utils-1.46/examples/sg_simple5.c:157:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sgq_dd.c:175:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:190:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:202:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:214:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:229:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_GENERIC_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:238:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:263:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:311:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr_t [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:351:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:389:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:423:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:452:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:482:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr_t [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:526:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr_t [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:587:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_VERSION_NUM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:641:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/examples/sgq_dd.c:824:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:221:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:386:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:541:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:583:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:647:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:762:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:853:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/getopt_long/getopt_long.c:253:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/getopt_long/getopt_long.c:364:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic.c:402:9: style: Condition 'resp' is always true [knownConditionTrueFalse] sg3_utils-1.46/examples/sg_simple2.c:55:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sgq_dd.c:769:13: warning:inconclusive: The buffer 'str' may not be null-terminated after the call to strncpy(). [terminateStrncpy] sg3_utils-1.46/examples/sgq_dd.c:778:13: warning:inconclusive: The buffer 'inf' may not be null-terminated after the call to strncpy(). [terminateStrncpy] sg3_utils-1.46/examples/sgq_dd.c:780:13: warning:inconclusive: The buffer 'outf' may not be null-terminated after the call to strncpy(). [terminateStrncpy] sg3_utils-1.46/examples/sgq_dd.c:1113:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] sg3_utils-1.46/examples/sgq_dd.c:863:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] sg3_utils-1.46/examples/sgq_dd.c:257:19: style: Parameter 'clp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/examples/sgq_dd.c:690:15: style: Variable 'rep' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/examples/sgq_dd.c:735:23: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/lib/sg_cmds_basic2.c:314:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic2.c:414:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic2.c:724:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic2.c:858:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_basic2.c:982:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:147:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:206:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:293:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:357:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:409:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:508:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:609:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:719:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:779:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:842:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:908:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1001:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1056:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1108:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1177:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1252:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1342:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1433:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1513:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1596:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1674:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:1768:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:2033:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:2362:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_cmds_extra.c:2431:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/getopt_long/getopt_long.c:317:9: style: Variable 'current_argv' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:150:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:169:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:320:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:360:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:389:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:428:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:448:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:479:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:500:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:596:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_OUT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:617:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_IN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:693:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:810:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:836:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_BOTH [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:857:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_BOTH [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:1016:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:2405:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:2444:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:136:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:194:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:268:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:348:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:360:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:374:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:392:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_pt_linux_scsi [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:429:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:462:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_pt_linux_scsi [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:549:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_VERSION_NUM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:977:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:1042:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_NONE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:1102:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:1133:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_freebsd.c:752:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_freebsd.c:431:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:451:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:473:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:503:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:540:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:827:19: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:881:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:901:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:1011:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_freebsd.c:1036:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/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] sg3_utils-1.46/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] sg3_utils-1.46/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] sg3_utils-1.46/lib/sg_pt_freebsd.c:125:39: style: Parameter 'ptp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:356:33: style: Variable 'fdc_p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:639:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:672:39: style: Parameter 'objp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:2402:35: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:2442:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_freebsd.c:507:13: error: Uninitialized variable: ptp [legacyUninitvar] sg3_utils-1.46/lib/sg_pt_freebsd.c:513:27: error: Uninitialized variable: ptp [legacyUninitvar] sg3_utils-1.46/lib/sg_pt_freebsd.c:701:17: style: Variable 'dev_han' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_linux_nvme.c:1912:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] sg3_utils-1.46/lib/sg_cmds_extra.c:2231:18: style: Condition 'sa>=5' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_cmds_extra.c:2229:12: note: Assuming that condition 'sa<=4' is not redundant sg3_utils-1.46/lib/sg_cmds_extra.c:2231:18: note: Condition 'sa>=5' is always true sg3_utils-1.46/lib/sg_lib.c:73:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:155:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:207:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:324:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_sense_key_desc [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:343:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_asc_ascq_range [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:544:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPC_SK_NO_SENSE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:580:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_pdt_strs [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:589:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_pdt_decay_arr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:598:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_transport_proto_strs [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:700:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:987:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:1370:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:1729:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPC_SK_RECOVERED_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:1815:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_sense_key_desc [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2006:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_exit_str_arr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2051:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OK_FALSE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2070:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2078:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2089:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OS_BASE_ERR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2131:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_scsi_sense_hdr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2181:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NO_SENSE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2254:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2382:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_nvm_cmd_arr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2495:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_scsi_feature_sets [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2629:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_cmd_status_arr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2660:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_cmd_status_arr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2870:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:2877:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:3337:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:3458:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:3491:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:3800:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:3857:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:3883:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_version_str [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:439:18: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] sg3_utils-1.46/lib/sg_pt_linux.c:431:41: note: Address of variable taken here. sg3_utils-1.46/lib/sg_pt_linux.c:439:18: note: Deallocating memory that was not dynamically allocated sg3_utils-1.46/lib/sg_pt_linux.c:438:13: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_linux.c:453:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_linux.c:485:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_linux.c:797:15: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_linux.c:854:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_linux.c:865:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/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] sg3_utils-1.46/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] sg3_utils-1.46/lib/sg_pt_solaris.c:59:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:69:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:91:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:108:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:145:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:161:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:217:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_READ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:234:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_WRITE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_warnings_strm [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:347:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:530:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_linux.c:131:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_pt_linux.c:504:16: style: struct member 'sg_extended_info::sei_rd_mask' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:506:16: style: struct member 'sg_extended_info::ctl_flags_rd_mask' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:508:16: style: struct member 'sg_extended_info::read_value' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:510:16: style: struct member 'sg_extended_info::reserved_sz' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:511:16: style: struct member 'sg_extended_info::tot_fd_thresh' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:512:16: style: struct member 'sg_extended_info::minor_index' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:513:16: style: struct member 'sg_extended_info::share_fd' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:514:16: style: struct member 'sg_extended_info::sgat_elem_sz' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_linux.c:515:16: style: struct member 'sg_extended_info::pad_to_96' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_osf1.c:83:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:97:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:183:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:217:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:232:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:289:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_IN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:305:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_OUT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:361:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XPT_REL_SIMQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:383:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADDL_SENSE_LENGTH [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:486:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:651:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_solaris.c:128:14: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] sg3_utils-1.46/lib/sg_pt_solaris.c:125:39: note: Address of variable taken here. sg3_utils-1.46/lib/sg_pt_solaris.c:128:14: note: Deallocating memory that was not dynamically allocated sg3_utils-1.46/lib/sg_pt_solaris.c:127:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_solaris.c:138:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_solaris.c:155:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_solaris.c:494:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_solaris.c:72:15: style: Redundant assignment of 'flags_arg' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:244:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:245:13: style: Redundant assignment of 'pack_id' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:253:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:254:9: style: Redundant assignment of 'tag' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:264:14: style: Redundant assignment of 'tmf_code' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:273:15: style: Redundant assignment of 'attribute' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:274:14: style: Redundant assignment of 'priority' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:281:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:282:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:451:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:503:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_solaris.c:473:47: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_solaris.c:524:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_solaris.c:72:15: style: Variable 'flags_arg' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:244:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:245:13: style: Variable 'pack_id' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:253:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:254:9: style: Variable 'tag' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:264:14: style: Variable 'tmf_code' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:273:15: style: Variable 'attribute' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:274:14: style: Variable 'priority' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:281:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:282:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:451:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_solaris.c:503:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_bg_ctl.c:93:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_SERVICE_ACTION_IN_16 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_bg_ctl.c:162:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:294:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:328:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADF [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:374:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_SHARE_READ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:493:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:524:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:592:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOCTL_STORAGE_QUERY_PROPERTY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:639:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:683:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:771:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:847:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:878:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:960:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_IN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:979:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_OUT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:1055:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:1131:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:1235:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:1288:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_TRANSPORT_ERR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:3128:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_win32.c:3143:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_compare_and_write.c:200:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_compare_and_write.c:361:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_compare_and_write.c:444:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_compare_and_write.c:520:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_compare_and_write.c:360:30: style: Condition 'sg_build_scsi_cdb(cawCmd,blocks,lba,flags)' is always false [knownConditionTrueFalse] sg3_utils-1.46/src/sg_compare_and_write.c:360:30: note: Calling function 'sg_build_scsi_cdb' returns 0 sg3_utils-1.46/src/sg_compare_and_write.c:360:30: note: Condition 'sg_build_scsi_cdb(cawCmd,blocks,lba,flags)' is always false sg3_utils-1.46/src/sg_compare_and_write.c:486:17: style: Condition 'res!=0' is always false [knownConditionTrueFalse] sg3_utils-1.46/src/sg_compare_and_write.c:485:25: note: Calling function 'parse_args' returns 0 sg3_utils-1.46/src/sg_compare_and_write.c:485:25: note: Assignment 'res=parse_args(argc,argv,op)', assigned value is 0 sg3_utils-1.46/src/sg_compare_and_write.c:486:17: note: Condition 'res!=0' is always false sg3_utils-1.46/src/sg_copy_results.c:347:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:217:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:231:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:258:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:295:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:336:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:375:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:549:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:721:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:901:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:1130:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:1387:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:1523:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:1844:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_pt_osf1.c:201:14: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] sg3_utils-1.46/lib/sg_pt_osf1.c:198:36: note: Address of variable taken here. sg3_utils-1.46/lib/sg_pt_osf1.c:201:14: note: Deallocating memory that was not dynamically allocated sg3_utils-1.46/lib/sg_pt_osf1.c:125:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:180:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:214:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:271:13: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:354:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:355:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:434:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:435:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] sg3_utils-1.46/lib/sg_pt_osf1.c:200:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_osf1.c:211:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_osf1.c:226:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_osf1.c:612:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] sg3_utils-1.46/lib/sg_pt_osf1.c:342:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_osf1.c:343:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_osf1.c:310:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_osf1.c:348:30: style: Variable 'ptp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_pt_osf1.c:349:30: style: Variable 'fdchan' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_pt_osf1.c:379:30: style: Variable 'fdchan' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_pt_osf1.c:645:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_osf1.c:342:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_osf1.c:343:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_osf1.c:348:34: style: Variable 'ptp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_osf1.c:380:9: style: Unused variable: len [unusedVariable] sg3_utils-1.46/lib/sg_pt_osf1.c:380:14: style: Unused variable: retval [unusedVariable] sg3_utils-1.46/src/sg_decode_sense.c:141:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_decode_sense.c:353:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/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] sg3_utils-1.46/lib/sg_pt_win32.c:324:31: note: Assuming that condition 'index>=32' is not redundant sg3_utils-1.46/lib/sg_pt_win32.c:331:22: note: Pointer arithmetic overflow sg3_utils-1.46/lib/sg_pt_win32.c:1230:37: warning: Either the condition 'vp' is redundant or there is possible null pointer dereference: vp. [nullPointerRedundantCheck] sg3_utils-1.46/lib/sg_pt_win32.c:1233:12: note: Assuming that condition 'vp' is not redundant sg3_utils-1.46/lib/sg_pt_win32.c:1230:37: note: Null pointer dereference sg3_utils-1.46/lib/sg_pt_win32.c:1233:24: style: Redundant initialization for 'psp'. The initialized value is overwritten before it is read. [redundantInitialization] sg3_utils-1.46/lib/sg_pt_win32.c:1230:35: note: psp is initialized sg3_utils-1.46/lib/sg_pt_win32.c:1233:24: note: psp is overwritten sg3_utils-1.46/lib/sg_pt_win32.c:349:30: style: Same value in both branches of ternary operator. [duplicateValueTernary] sg3_utils-1.46/lib/sg_pt_win32.c:1037:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_win32.c:1038:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] sg3_utils-1.46/lib/sg_pt_win32.c:1001:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_win32.c:3124:35: style: Parameter 'psp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_win32.c:3124:62: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_win32.c:3137:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/lib/sg_pt_win32.c:728:9: warning: Size of pointer 'vp' used instead of size of its data. [pointerSize] sg3_utils-1.46/lib/sg_pt_win32.c:299:19: error: Uninitialized variable: lpMsgBuf [uninitvar] sg3_utils-1.46/lib/sg_pt_win32.c:115:10: style: union member 'STORAGE_DEVICE_DESCRIPTOR_DATA::raw' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_win32.c:120:10: style: union member 'STORAGE_DEVICE_UID_DATA::raw' is never used. [unusedStructMember] sg3_utils-1.46/lib/sg_pt_win32.c:1037:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/lib/sg_pt_win32.c:1038:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_emc_trespass.c:161:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_get_config.c:1003:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:302:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:362:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:412:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:644:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NOT_READY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:763:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NOT_READY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:893:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:1012:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:1112:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:1286:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_format.c:1554:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OK_FALSE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_get_elem_status.c:143:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_SERVICE_ACTION_IN_16 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_get_elem_status.c:267:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_dd.c:1850:22: style: Expression is always false because 'else if' condition matches previous condition at line 1847. [multiCondition] sg3_utils-1.46/src/sg_dd.c:2226:19: style: Condition '0!=read_blkdev_capacity(infd,&in_num_sect,&in_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_dd.c:2226:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/src/sg_dd.c:2226:19: note: Condition '0!=read_blkdev_capacity(infd,&in_num_sect,&in_sect_sz)' is always true sg3_utils-1.46/src/sg_dd.c:2261:19: style: Condition '0!=read_blkdev_capacity(outfd,&out_num_sect,&out_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_dd.c:2261:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/src/sg_dd.c:2261:19: note: Condition '0!=read_blkdev_capacity(outfd,&out_num_sect,&out_sect_sz)' is always true sg3_utils-1.46/src/sg_dd.c:299:19: warning:inconclusive: Width 126 given in format string (no. 1) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sg3_utils-1.46/src/sg_dd.c:304:18: warning:inconclusive: Width 126 given in format string (no. 2) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sg3_utils-1.46/src/sg_dd.c:340:19: warning:inconclusive: Width 126 given in format string (no. 1) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sg3_utils-1.46/src/sg_dd.c:345:18: warning:inconclusive: Width 126 given in format string (no. 2) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sg3_utils-1.46/src/sg_dd.c:287:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_dd.c:328:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_dd.c:610:9: style: Variable 've_opcode' can be declared as const array [constVariable] sg3_utils-1.46/src/sg_dd.c:1776:23: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_dd.c:2482:32: 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] sg3_utils-1.46/src/sg_dd.c:853:18: style: Variable 'may_coe' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_format.c:490:21: style: Condition 'immed' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_format.c:483:13: note: Assuming that condition '!immed' is not redundant sg3_utils-1.46/src/sg_format.c:490:21: note: Condition 'immed' is always true sg3_utils-1.46/src/sg_format.c:613:21: style: Condition 'immed' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_format.c:607:13: note: Assuming that condition '!immed' is not redundant sg3_utils-1.46/src/sg_format.c:613:21: note: Condition 'immed' is always true sg3_utils-1.46/src/sg_format.c:733:21: style: Condition 'immed' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_format.c:727:13: note: Assuming that condition '!immed' is not redundant sg3_utils-1.46/src/sg_format.c:733:21: note: Condition 'immed' is always true sg3_utils-1.46/src/sg_format.c:1116:44: style: Condition 'op->mode6' is always false [knownConditionTrueFalse] sg3_utils-1.46/src/sg_format.c:1113:46: note: Assuming that condition '!op->mode6' is not redundant sg3_utils-1.46/src/sg_format.c:1116:44: note: Condition 'op->mode6' is always false sg3_utils-1.46/src/sg_get_lba_status.c:206:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ident.c:157:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_get_elem_status.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] sg3_utils-1.46/src/sg_inq.c:491:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:1440:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:1895:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPROTO_UAS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:2226:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_UNBOUNDED_32BIT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:2972:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:3038:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:3118:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:3337:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:3373:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:4097:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:764:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:930:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1175:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1360:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1411:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_WILD_RESID [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1676:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1757:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1812:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1868:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:2114:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:2217:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:2463:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:2795:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:3482:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:3699:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:3986:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:4130:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:4582:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:5015:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:5236:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:5341:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu16 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:5461:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:5684:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:5750:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6116:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6197:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6537:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6586:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6662:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6685:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6738:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NOT_READY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6771:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:6844:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_luns.c:277:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_luns.c:426:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map.c:148:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map.c:233:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map.c:453:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map.c:245:29: style: Expression is always true because 'else if' condition is opposite to previous condition at line 241. [multiCondition] sg3_utils-1.46/src/sg_map.c:241:29: note: first condition sg3_utils-1.46/src/sg_map.c:245:29: note: else if condition is opposite to first condition sg3_utils-1.46/src/sg_map.c:146:56: error: Null pointer dereference [nullPointer] sg3_utils-1.46/src/sg_map.c:191:27: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_map.c:405:47: style: Parameter 'my_idlun' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_map.c:409:25: style: Variable 'sidp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_map.c:97:9: style: struct member 'my_scsi_idlun::host_unique_id' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_map26.c:149:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:224:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:387:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:412:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_LNK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:453:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_LNK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:502:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:523:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_LNK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:544:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:680:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_DISK0_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:1007:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_DIR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:1074:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_map26.c:816:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_map26.c:874:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_map26.c:383:69: error: Null pointer dereference [nullPointer] sg3_utils-1.46/src/sg_map26.c:430:66: error: Null pointer dereference [nullPointer] sg3_utils-1.46/src/sg_map26.c:498:68: error: Null pointer dereference [nullPointer] sg3_utils-1.46/src/sg_map26.c:542:66: error: Null pointer dereference [nullPointer] sg3_utils-1.46/src/sg_modes.c:462:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_modes.c:677:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_modes.c:794:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_modes.c:1054:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_modes.c:1166:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OK_FALSE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/lib/sg_lib.c:337:38: style: Variable 'ei2p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_lib.c:3142:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_lib.c:3266:12: style: Variable 'commap' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/lib/sg_lib.c:3305:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_modes.c:598:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_modes.c:759:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_opcodes.c:349:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_opcodes.c:530:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_opcodes.c:716:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_opcodes.c:984:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:287:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:461:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPROTO_ISCSI [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:492:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:549:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:608:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPROTO_SAS [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:751:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:902:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_persist.c:992:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_opcodes.c:450:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_opcodes.c:572:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_prevent.c:97:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_raw.c:191:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_raw.c:406:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_raw.c:429:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_raw.c:498:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_FILE_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_raw.c:599:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_raw.c:419:31: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_raw.c:496:46: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_rbuf.c:169:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rbuf.c:301:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rbuf.c:386:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rbuf.c:464:13: style: Condition 'rawp' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_rbuf.c:435:9: error: Resource leak: sg_fd [resourceLeak] sg3_utils-1.46/src/sg_rbuf.c:241:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_rbuf.c:337:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_rdac.c:402:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rdac.c:90:38: style: Parameter 'page' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_rdac.c:252:19: style: Variable 'lun_table' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_rdac.c:255:34: style: Variable 'rdac_ptr' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_rdac.c:75:14: style: struct member 'rdac_legacy_page::lun_table_exp' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_rdac.c:76:20: style: struct member 'rdac_legacy_page::reserved' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_rdac.c:85:14: style: struct member 'rdac_expanded_page::reserved' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_read.c:108:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read.c:121:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read.c:137:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read.c:164:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_GENERIC_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read.c:304:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read.c:461:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_logs.c:1086:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_logs.c:1321:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_logs.c:672:48: warning: Shifting 32-bit value by 32 bits is undefined behaviour. See condition at line 671. [shiftTooManyBits] sg3_utils-1.46/src/sg_logs.c:671:21: note: Assuming that condition 'vpn>(32-8)' is not redundant sg3_utils-1.46/src/sg_logs.c:672:48: note: Shift sg3_utils-1.46/src/sg_logs.c:672:48: warning: Either the condition 'vpn>(32-8)' is redundant or there is signed integer overflow for expression '1<<(vpn+8)'. [integerOverflowCond] sg3_utils-1.46/src/sg_logs.c:671:21: note: Assuming that condition 'vpn>(32-8)' is not redundant sg3_utils-1.46/src/sg_logs.c:672:48: note: Integer overflow sg3_utils-1.46/src/sg_read.c:402:23: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_read_block_limits.c:131:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_attr.c:277:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_attr.c:476:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_attr.c:639:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_attr.c:767:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_buffer.c:449:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_long.c:167:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_read_attr.c:433:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_read_attr.c:434:12: style: Variable 'c2p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_read_attr.c:598:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_read_attr.c:599:12: style: Variable 'c2p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_readcap.c:193:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_readcap.c:325:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_readcap.c:452:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_reassign.c:122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_LOGIC_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_reassign.c:255:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_readcap.c:566:20: style: Condition 'res' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_readcap.c:658:18: style: Condition 'res' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_inq.c:4437:13: style: Condition 'ret' is always false [knownConditionTrueFalse] sg3_utils-1.46/src/sg_inq.c:4436:28: note: Calling function 'cmddt_process' returns 0 sg3_utils-1.46/src/sg_inq.c:4436:28: note: Assignment 'ret=cmddt_process(sg_fd,op)', assigned value is 0 sg3_utils-1.46/src/sg_inq.c:4437:13: note: Condition 'ret' is always false sg3_utils-1.46/src/sg_inq.c:2344:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_readcap.c:253:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_readcap.c:359:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_referrals.c:154:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_referrals.c:211:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rep_pip.c:103:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_MAINTENANCE_IN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rep_pip.c:192:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_inq.c:164:9: style: struct member 'svpd_values_name_t::subvalue' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_inq.c:167:9: style: struct member 'svpd_values_name_t::vendor' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_inq.c:269:10: style: struct member 'opts_t::possible_nvme' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_rep_zones.c:137:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_ZONING_IN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rep_zones.c:335:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_requests.c:184:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_reset.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_reset.c:188:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_reset.c:138:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_reset_wp.c:89:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_ZONING_OUT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_reset_wp.c:165:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_rmsn.c:109:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_requests.c:323:26: style: Local variable 'b' shadows outer variable [shadowVariable] sg3_utils-1.46/src/sg_requests.c:152:10: note: Shadowed declaration sg3_utils-1.46/src/sg_requests.c:323:26: note: Shadow variable sg3_utils-1.46/src/sg_requests.c:416:22: style: Local variable 'b' shadows outer variable [shadowVariable] sg3_utils-1.46/src/sg_requests.c:152:10: note: Shadowed declaration sg3_utils-1.46/src/sg_requests.c:416:22: note: Shadow variable sg3_utils-1.46/src/sg_requests.c:471:26: style: Local variable 'b' shadows outer variable [shadowVariable] sg3_utils-1.46/src/sg_requests.c:152:10: note: Shadowed declaration sg3_utils-1.46/src/sg_requests.c:471:26: note: Shadow variable sg3_utils-1.46/src/sg_rtpg.c:202:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:86:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:146:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_RECOVERED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:288:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:333:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:376:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_RECOVERED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:426:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_safte.c:523:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sanitize.c:210:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sanitize.c:379:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sanitize.c:484:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_identify.c:222:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_identify.c:439:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_phy_event.c:244:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAM_STAT_CHECK_CONDITION [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_phy_event.c:413:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_read_gplog.c:225:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAM_STAT_CHECK_CONDITION [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_read_gplog.c:358:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_identify.c:171:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_identify.c:124:18: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_identify.c:125:23: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_identify.c:169:13: note: First condition sg3_utils-1.46/src/sg_sat_identify.c:171:13: note: Second condition sg3_utils-1.46/src/sg_sat_identify.c:194:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_identify.c:124:18: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_identify.c:125:23: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_identify.c:192:13: note: First condition sg3_utils-1.46/src/sg_sat_identify.c:194:13: note: Second condition sg3_utils-1.46/src/sg_sat_identify.c:214:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_identify.c:124:18: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_identify.c:125:23: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_identify.c:212:13: note: First condition sg3_utils-1.46/src/sg_sat_identify.c:214:13: note: Second condition sg3_utils-1.46/src/sg_sat_read_gplog.c:183:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_read_gplog.c:131:24: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_read_gplog.c:132:29: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_read_gplog.c:181:13: note: First condition sg3_utils-1.46/src/sg_sat_read_gplog.c:183:13: note: Second condition sg3_utils-1.46/src/sg_sat_read_gplog.c:205:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_read_gplog.c:131:24: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_read_gplog.c:132:29: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_read_gplog.c:203:13: note: First condition sg3_utils-1.46/src/sg_sat_read_gplog.c:205:13: note: Second condition sg3_utils-1.46/src/sg_sat_set_features.c:193:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAM_STAT_CHECK_CONDITION [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_set_features.c:331:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_linux.c:134:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_linux.c:204:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_linux.c:404:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_linux.c:481:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_SEND_COMMAND [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_phy_event.c:200:35: style:inconclusive: Boolean expression 'page_in_log' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] sg3_utils-1.46/src/sg_sat_phy_event.c:223:36: style:inconclusive: Boolean expression 'page_in_log' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] sg3_utils-1.46/src/sg_sat_phy_event.c:212:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_phy_event.c:166:18: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_phy_event.c:167:23: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_phy_event.c:210:13: note: First condition sg3_utils-1.46/src/sg_sat_phy_event.c:212:13: note: Second condition sg3_utils-1.46/src/sg_sat_phy_event.c:233:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_phy_event.c:166:18: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_phy_event.c:167:23: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_phy_event.c:231:13: note: First condition sg3_utils-1.46/src/sg_sat_phy_event.c:233:13: note: Second condition sg3_utils-1.46/src/sg_sat_phy_event.c:202:44: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sg3_utils-1.46/src/sg_sat_phy_event.c:225:46: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sg3_utils-1.46/src/sg_sat_phy_event.c:376:12: style: Variable 'device_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_scan_win32.c:125:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:215:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOCTL_STORAGE_QUERY_PROPERTY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:243:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropertyExistsQuery [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:333:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:413:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:451:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:503:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:551:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:688:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_sat_set_features.c:161:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_set_features.c:116:24: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_set_features.c:117:29: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_set_features.c:159:13: note: First condition sg3_utils-1.46/src/sg_sat_set_features.c:161:13: note: Second condition sg3_utils-1.46/src/sg_sat_set_features.c:183:13: style: The if condition is the same as the previous if condition [duplicateCondition] sg3_utils-1.46/src/sg_sat_set_features.c:116:24: note: 't_dir' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_set_features.c:117:29: note: 'byte_block' is assigned value 'true' here. sg3_utils-1.46/src/sg_sat_set_features.c:181:13: note: First condition sg3_utils-1.46/src/sg_sat_set_features.c:183:13: note: Second condition sg3_utils-1.46/src/sg_sat_set_features.c:151:44: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sg3_utils-1.46/src/sg_sat_set_features.c:175:46: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sg3_utils-1.46/src/sg_seek.c:183:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_linux.c:628:12: warning: Identical condition and return expression 'res', return value is always 0 [identicalConditionAfterEarlyExit] sg3_utils-1.46/src/sg_scan_linux.c:618:9: note: If condition 'res' is true, the function will return/exit sg3_utils-1.46/src/sg_scan_linux.c:628:12: note: Returning identical expression 'res' sg3_utils-1.46/src/sg_scan_linux.c:132:56: error: Null pointer dereference [nullPointer] sg3_utils-1.46/src/sg_scan_linux.c:449:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_scan_linux.c:581:36: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_scan_linux.c:76:9: style: struct member 'my_scsi_idlun::host_unique_id' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:80:9: style: struct member 'my_sg_scsi_id::host_no' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:81:9: style: struct member 'my_sg_scsi_id::channel' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:82:9: style: struct member 'my_sg_scsi_id::scsi_id' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:83:9: style: struct member 'my_sg_scsi_id::lun' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:84:9: style: struct member 'my_sg_scsi_id::scsi_type' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:87:9: style: struct member 'my_sg_scsi_id::unused1' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_scan_linux.c:88:9: style: struct member 'my_sg_scsi_id::unused2' is never used. [unusedStructMember] sg3_utils-1.46/src/sg_senddiag.c:200:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_senddiag.c:367:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_senddiag.c:463:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_senddiag.c:498:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_senddiag.c:697:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_scan_win32.c:712:20: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] sg3_utils-1.46/src/sg_scan_win32.c:711:16: note: outer condition: optind sg3_utils-1.46/src/sg_scan_win32.c:119:15: note: Assuming condition is false sg3_utils-1.46/src/sg_scan_win32.c:121:16: note: Uninitialized variable: b sg3_utils-1.46/src/sg_scan_win32.c:321:15: style: Variable 'err' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_scan_win32.c:383:21: style: Variable 'err' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_ses_microcode.c:269:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses_microcode.c:323:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses_microcode.c:519:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_seek.c:399:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_seek.c:383:23: style: The comparison 'elapsed_usecs > 0' is always false. [knownConditionTrueFalse] sg3_utils-1.46/src/sg_seek.c:161:29: note: 'elapsed_usecs' is assigned value '0' here. sg3_utils-1.46/src/sg_seek.c:383:23: note: The comparison 'elapsed_usecs > 0' is always false. sg3_utils-1.46/src/sg_seek.c:338:20: style: Variable 'start_tm_valid' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_senddiag.c:283:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_senddiag.c:401:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_start.c:193:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_start.c:365:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_start.c:533:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stpg.c:159:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stpg.c:301:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_LOGIC_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stpg.c:348:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_LOGIC_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stpg.c:475:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:1013:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:1159:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:1861:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:1911:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:2030:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:2105:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3119:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3185:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3539:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx16 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3594:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3714:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3748:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3785:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3882:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3945:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:4330:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:4454:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:5121:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:5189:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:5247:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:5272:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:5397:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:5559:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stream_ctl.c:117:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_SERVICE_ACTION_IN_16 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stream_ctl.c:182:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_SERVICE_ACTION_IN_16 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_stream_ctl.c:282:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_start.c:293:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_start.c:469:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_sync.c:180:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_test_rwbuf.c:95:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_BUFFER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_test_rwbuf.c:235:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_BUFFER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_test_rwbuf.c:298:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRITE_BUFFER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_test_rwbuf.c:420:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_timestamp.c:199:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_MAINTENANCE_IN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_timestamp.c:258:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_MAINTENANCE_OUT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_timestamp.c:360:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_test_rwbuf.c:158:20: style: Parameter 'bf1' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_test_rwbuf.c:158:34: style: Parameter 'bf2' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_turs.c:164:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_turs.c:283:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_turs.c:340:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_turs.c:358:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_turs.c:441:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NOT_READY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_turs.c:516:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses_microcode.c:497:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_verify.c:181:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_unmap.c:270:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_unmap.c:406:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_turs.c:231:57: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sg_turs.c:316:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_turs.c:368:27: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:240:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PDT_DISK [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd_vendor.c:416:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd_vendor.c:1424:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:326:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:779:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:967:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:1340:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:1428:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:1652:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_UNBOUNDED_32BIT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2019:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_UNBOUNDED_32BIT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2227:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2411:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2577:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_UNBOUNDED_32BIT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2677:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2722:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:2829:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:3598:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ABORTED_COMMAND [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:3713:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:3788:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd_vendor.c:455:34: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:489:39: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:501:37: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:873:35: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:1193:30: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:1212:29: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:1245:32: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:1300:31: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd_vendor.c:1314:30: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_write_buffer.c:233:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_wr_mode.c:125:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_LOGIC_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_wr_mode.c:284:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_wr_mode.c:364:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_buffer.c:462:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] sg3_utils-1.46/src/sg_write_buffer.c:480:27: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] sg3_utils-1.46/src/sg_write_buffer.c:219:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_write_buffer.c:460:25: style: Variable 'val' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/src/sg_write_long.c:148:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_same.c:297:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_same.c:361:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_verify.c:174:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_verify.c:259:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_verify.c:320:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:214:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:227:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:239:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:275:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:321:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:374:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:695:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:1035:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:1215:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_FILE_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:1264:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:1343:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:3600:26: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] sg3_utils-1.46/src/sg_vpd.c:3596:13: note: outer condition: res sg3_utils-1.46/src/sg_vpd.c:3600:26: note: identical inner condition: res sg3_utils-1.46/src/sg_vpd.c:2660:34: style: Condition '1==do_hex' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_vpd.c:2659:9: note: Assuming that condition 'do_hex' is not redundant sg3_utils-1.46/src/sg_vpd.c:2660:34: note: Condition '1==do_hex' is always true sg3_utils-1.46/src/sg_vpd.c:2709:34: style: Condition '1==do_hex' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_vpd.c:2708:9: note: Assuming that condition 'do_hex' is not redundant sg3_utils-1.46/src/sg_vpd.c:2709:34: note: Condition '1==do_hex' is always true sg3_utils-1.46/src/sg_vpd.c:1402:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_vpd.c:1402:17: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_vpd.c:2251:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sg3_utils-1.46/src/sg_vpd.c:2673:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sg3_utils-1.46/src/sg_vpd.c:2679:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sg3_utils-1.46/src/sg_vpd.c:2680:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sg3_utils-1.46/src/sg_vpd.c:2681:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sg3_utils-1.46/src/sg_write_x.c:496:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:604:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_LOGIC_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:683:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:817:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:979:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:1112:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:1405:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_UNIT_ATTENTION [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:1533:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:1857:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:2257:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_vpd.c:489:26: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd.c:2405:42: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_vpd.c:1801: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] sg3_utils-1.46/src/sg_zone.c:135:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_ZONING_OUT [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_zone.c:227:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_xcopy.c:279:19: warning:inconclusive: Width 126 given in format string (no. 1) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sg3_utils-1.46/src/sg_xcopy.c:284:18: warning:inconclusive: Width 126 given in format string (no. 2) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] sg3_utils-1.46/src/sg_xcopy.c:270:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_xcopy.c:618:29: style: Parameter 'src_desc' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_xcopy.c:619:29: style: Parameter 'dst_desc' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_xcopy.c:1025:32: style: Variable 'best' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_xcopy.c:1560:20: style: Variable 'csp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_xcopy.c:1561:20: style: Variable 'cdp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_xcopy.c:785:23: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 783. [shiftTooManyBitsSigned] sg3_utils-1.46/src/sg_xcopy.c:783:24: note: Assuming that condition 'rcBuff[39]>30' is not redundant sg3_utils-1.46/src/sg_xcopy.c:785:23: note: Shift sg3_utils-1.46/src/sginfo.c:401:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:606:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:620:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:651:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:755:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:831:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:906:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:963:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:1022:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:1081:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:1114:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:1440:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:1551:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:3089:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:3212:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:3449:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:3586:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:3680:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sginfo.c:3750:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:144:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:157:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:195:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:227:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:342:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:478:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:574:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:786:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgm_dd.c:1191:19: style: Condition '0!=read_blkdev_capacity(infd,&in_num_sect,&in_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sgm_dd.c:1191:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/src/sgm_dd.c:1191:19: note: Condition '0!=read_blkdev_capacity(infd,&in_num_sect,&in_sect_sz)' is always true sg3_utils-1.46/src/sgm_dd.c:1220:19: style: Condition '0!=read_blkdev_capacity(outfd,&out_num_sect,&out_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sgm_dd.c:1220:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/src/sgm_dd.c:1220:19: note: Condition '0!=read_blkdev_capacity(outfd,&out_num_sect,&out_sect_sz)' is always true sg3_utils-1.46/src/sgm_dd.c:722:23: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sgm_dd.c:1195:27: error: Uninitialized variable: in_sect_sz [legacyUninitvar] sg3_utils-1.46/src/sgm_dd.c:1225:27: error: Uninitialized variable: out_sect_sz [legacyUninitvar] sg3_utils-1.46/src/sgp_dd.c:297:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:313:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:339:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:394:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_MAJOR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:490:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_RESERVED_SIZE [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:624:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_VERSION_NUM [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:643:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:669:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:713:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:846:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:892:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:1000:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:1080:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:1161:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:1214:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:1393:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sgp_dd.c:1722:19: style: Condition '0!=read_blkdev_capacity(clp->infd,&in_num_sect,&in_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sgp_dd.c:1722:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/src/sgp_dd.c:1722:19: note: Condition '0!=read_blkdev_capacity(clp->infd,&in_num_sect,&in_sect_sz)' is always true sg3_utils-1.46/src/sgp_dd.c:1754:19: style: Condition '0!=read_blkdev_capacity(clp->outfd,&out_num_sect,&out_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sgp_dd.c:1754:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/src/sgp_dd.c:1754:19: note: Condition '0!=read_blkdev_capacity(clp->outfd,&out_num_sect,&out_sect_sz)' is always true sg3_utils-1.46/src/sgp_dd.c:360:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sgp_dd.c:641:47: style: Parameter 'flagp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sgp_dd.c:667:48: style: Parameter 'flagp' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sgp_dd.c:1338:23: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/src/sgp_dd.c:1727:28: error: Uninitialized variable: in_sect_sz [legacyUninitvar] sg3_utils-1.46/src/sgp_dd.c:1759:28: error: Uninitialized variable: out_sect_sz [legacyUninitvar] sg3_utils-1.46/testing/bsg_queue_tst.c:90:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:1516:18: style: Condition 'op->do_status' is always true [knownConditionTrueFalse] sg3_utils-1.46/src/sg_ses.c:1509:16: note: Assuming that condition '!op->do_status' is not redundant sg3_utils-1.46/src/sg_ses.c:1516:18: note: Condition 'op->do_status' is always true sg3_utils-1.46/testing/bsg_queue_tst.c:59:13: style: Variable 'inqBuff' can be declared as const array [constVariable] sg3_utils-1.46/testing/bsg_queue_tst.c:62:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/bsg_queue_tst.c:64:13: style: Variable 'sense_buffer' can be declared as const array [constVariable] sg3_utils-1.46/testing/bsg_queue_tst.c:59:13: style: Variable 'inqBuff' is not assigned a value. [unassignedVariable] sg3_utils-1.46/testing/bsg_queue_tst.c:64:13: style: Variable 'sense_buffer' is not assigned a value. [unassignedVariable] sg3_utils-1.46/testing/sg_chk_asc.c:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_chk_asc.c:92:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_chk_asc.c:62:27: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/testing/sg_iovec_tst.cpp:149:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_10 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_iovec_tst.cpp:250:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_10 [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_iovec_tst.cpp:384:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_ses.c:3915:28: style:inconclusive: Function 'read_hex' argument 6 names different: declaration 'may_gave_at' definition 'may_have_at'. [funcArgNamesDifferent] sg3_utils-1.46/src/sg_ses.c:816:54: note: Function 'read_hex' argument 6 names different: declaration 'may_gave_at' definition 'may_have_at'. sg3_utils-1.46/src/sg_ses.c:3915:28: note: Function 'read_hex' argument 6 names different: declaration 'may_gave_at' definition 'may_have_at'. sg3_utils-1.46/src/sg_ses.c:3915:45: style:inconclusive: Function 'read_hex' argument 7 names different: declaration 'verb' definition 'vb'. [funcArgNamesDifferent] sg3_utils-1.46/src/sg_ses.c:816:71: note: Function 'read_hex' argument 7 names different: declaration 'verb' definition 'vb'. sg3_utils-1.46/src/sg_ses.c:3915:45: note: Function 'read_hex' argument 7 names different: declaration 'verb' definition 'vb'. sg3_utils-1.46/src/sg_ses.c:1569:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_ses.c:4621:15: style: Variable 't_bp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/src/sg_ses.c:4718:71: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] sg3_utils-1.46/src/sg_ses.c:1740:16: warning: Uninitialized variable: b [uninitvar] sg3_utils-1.46/src/sg_ses.c:5482:58: note: Calling function 'etype_str', 2nd argument 'bb' value is sg3_utils-1.46/src/sg_ses.c:1740:16: note: Uninitialized variable: b sg3_utils-1.46/src/sg_ses.c:4837:13: style: Variable 'k' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/testing/sg_iovec_tst.cpp:519:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sg3_utils-1.46/testing/sg_scat_gath.h:108:5: style: Class 'scat_gath_iter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sg3_utils-1.46/testing/sg_iovec_tst.cpp:323:32: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_iovec_tst.cpp:510:17: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_iovec_tst.cpp:536:13: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_iovec_tst.cpp:154:22: style: The scope of the variable 'res' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_iovec_tst.cpp:155:10: style: The scope of the variable 'b' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_iovec_tst.cpp:256:10: style: The scope of the variable 'b' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_iovec_tst.cpp:361:12: style: Variable 'sg_dev_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_iovec_tst.cpp:362:12: style: Variable 'out_file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_iovec_tst.cpp:363:12: style: Variable 'sgl_fn' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_iovec_tst.cpp:365:15: style: Variable 'fillp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_iovec_tst.cpp:519:20: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_queue_tst.c:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_queue_tst.c:154:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sg3_utils-1.46/src/sg_write_x.c:1312:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sg3_utils-1.46/src/sg_write_x.c:2605:24: style: Variable 'op->xfer_bytes' is reassigned a value before the old one has been used. [redundantAssignment] sg3_utils-1.46/src/sg_write_x.c:2598:24: note: op->xfer_bytes is assigned sg3_utils-1.46/src/sg_write_x.c:2605:24: note: op->xfer_bytes is overwritten sg3_utils-1.46/src/sg_write_x.c:1397:18: style: Variable 'prot_en' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/testing/sg_queue_tst.c:111:12: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_queue_tst.c:108:13: style: Variable 'inqBuff' is not assigned a value. [unassignedVariable] sg3_utils-1.46/testing/sg_sense_test.c:44:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_sense_test.c:68:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sg3_utils-1.46/testing/sg_sense_test.c:138:20: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] sg3_utils-1.46/testing/sg_sense_test.c:137:16: note: outer condition: optindinfd,&in_num_sect,&in_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3742:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/testing/sg_mrq_dd.cpp:3742:19: note: Condition '0!=read_blkdev_capacity(clp->infd,&in_num_sect,&in_sect_sz)' is always true sg3_utils-1.46/testing/sg_mrq_dd.cpp:3757:19: style: Condition '0!=read_blkdev_capacity(clp->outfd,&out_num_sect,&out_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3757:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/testing/sg_mrq_dd.cpp:3757:19: note: Condition '0!=read_blkdev_capacity(clp->outfd,&out_num_sect,&out_sect_sz)' is always true sg3_utils-1.46/testing/sg_mrq_dd.cpp:441:35: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:448:47: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:658:13: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1528:23: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1828:35: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2128:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2159:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2725:24: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2770:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2799:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2964:19: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3497:24: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3505:24: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sg_mrq_dd.cpp:736:21: style: The scope of the variable 'outfull' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1150:9: style: The scope of the variable 'sig_number' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1513:13: style: The scope of the variable 'k' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1513:16: style: The scope of the variable 'j' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1516:19: style: The scope of the variable 'bp' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1637:14: style: The scope of the variable 'err' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3030:9: style: The scope of the variable 'k' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3048:10: style: The scope of the variable 'def_hex' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3051:13: style: The scope of the variable 'll' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3052:18: style: The scope of the variable 'cp' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3175:13: style: The scope of the variable 'err' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3177:10: style: The scope of the variable 'ebuff' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3208:13: style: The scope of the variable 'err' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3210:10: style: The scope of the variable 'ebuff' can be reduced. [variableScope] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3173:18: style:inconclusive: Function 'sg_in_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. [funcArgNamesDifferent] sg3_utils-1.46/testing/sg_mrq_dd.cpp:358:44: note: Function 'sg_in_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sg_mrq_dd.cpp:3173:18: note: Function 'sg_in_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sg_mrq_dd.cpp:3206:19: style:inconclusive: Function 'sg_out_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. [funcArgNamesDifferent] sg3_utils-1.46/testing/sg_mrq_dd.cpp:360:45: note: Function 'sg_out_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sg_mrq_dd.cpp:3206:19: note: Function 'sg_out_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sg_mrq_dd.cpp:1516:19: style: Local variable 'bp' shadows outer variable [shadowVariable] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1506:15: note: Shadowed declaration sg3_utils-1.46/testing/sg_mrq_dd.cpp:1516:19: note: Shadow variable sg3_utils-1.46/testing/sg_mrq_dd.cpp:810:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1586:15: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1639:32: style: Variable 'clp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1640:15: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1668:9: style: Variable 've_opcode' can be declared as const array [constVariable] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1900:22: style: Variable 'flagsp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2005:23: style: Variable 'a_v4p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2013:22: style: Variable 'flagsp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2433:22: style: Variable 'iflagsp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2434:22: style: Variable 'oflagsp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2606:23: style: Variable 'a_v4p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2614:22: style: Variable 'iflagsp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2615:22: style: Variable 'oflagsp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sg_mrq_dd.cpp:3281:39: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/testing/sg_mrq_dd.cpp:480:16: warning: Uninitialized variable: b [uninitvar] sg3_utils-1.46/testing/sg_mrq_dd.cpp:664:70: note: Calling function 'sg_flags_str', 3rd argument 'b' value is sg3_utils-1.46/testing/sg_mrq_dd.cpp:480:16: note: Uninitialized variable: b sg3_utils-1.46/testing/sg_mrq_dd.cpp:321:10: style: struct member 'sg_io_extra::prefetch' is never used. [unusedStructMember] sg3_utils-1.46/testing/sg_mrq_dd.cpp:322:10: style: struct member 'sg_io_extra::dout_is_split' is never used. [unusedStructMember] sg3_utils-1.46/testing/sg_mrq_dd.cpp:323:9: style: struct member 'sg_io_extra::hpv4_ind' is never used. [unusedStructMember] sg3_utils-1.46/testing/sg_mrq_dd.cpp:324:9: style: struct member 'sg_io_extra::blk_offset' is never used. [unusedStructMember] sg3_utils-1.46/testing/sg_mrq_dd.cpp:325:9: style: struct member 'sg_io_extra::blks' is never used. [unusedStructMember] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1436:19: style: Variable 'singleton' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/testing/sg_mrq_dd.cpp:1925:17: style: Variable 'res' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/testing/sg_mrq_dd.cpp:2475:17: style: Variable 'res' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/testing/sgh_dd.cpp:1561:16: style: Condition 'sg_version_ge_40045' is always true [knownConditionTrueFalse] sg3_utils-1.46/testing/sgh_dd.cpp:1553:9: note: Assuming that condition '!sg_version_ge_40045' is not redundant sg3_utils-1.46/testing/sgh_dd.cpp:1561:16: note: Condition 'sg_version_ge_40045' is always true sg3_utils-1.46/testing/sgh_dd.cpp:2809:51: style: Condition 'clp->in_flags.mrq_svb' is always false [knownConditionTrueFalse] sg3_utils-1.46/testing/sgh_dd.cpp:2809:26: note: Assuming that condition 'clp->in_flags.mrq_svb' is not redundant sg3_utils-1.46/testing/sgh_dd.cpp:2809:51: note: Condition 'clp->in_flags.mrq_svb' is always false sg3_utils-1.46/testing/sgh_dd.cpp:2932:58: style: Condition 'clp->in_flags.mrq_svb' is always false [knownConditionTrueFalse] sg3_utils-1.46/testing/sgh_dd.cpp:2932:33: note: Assuming that condition 'clp->in_flags.mrq_svb' is not redundant sg3_utils-1.46/testing/sgh_dd.cpp:2932:58: note: Condition 'clp->in_flags.mrq_svb' is always false sg3_utils-1.46/testing/sgh_dd.cpp:3506:27: style: Condition 'clp->verbose>4' is always true [knownConditionTrueFalse] sg3_utils-1.46/testing/sgh_dd.cpp:3503:22: note: Assuming that condition 'clp->verbose>4' is not redundant sg3_utils-1.46/testing/sgh_dd.cpp:3506:27: note: Condition 'clp->verbose>4' is always true sg3_utils-1.46/testing/sgh_dd.cpp:4652:19: style: Condition '0!=read_blkdev_capacity(clp->infd,&in_num_sect,&in_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/testing/sgh_dd.cpp:4652:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/testing/sgh_dd.cpp:4652:19: note: Condition '0!=read_blkdev_capacity(clp->infd,&in_num_sect,&in_sect_sz)' is always true sg3_utils-1.46/testing/sgh_dd.cpp:4690:19: style: Condition '0!=read_blkdev_capacity(clp->outfd,&out_num_sect,&out_sect_sz)' is always true [knownConditionTrueFalse] sg3_utils-1.46/testing/sgh_dd.cpp:4690:42: note: Calling function 'read_blkdev_capacity' returns -1 sg3_utils-1.46/testing/sgh_dd.cpp:4690:19: note: Condition '0!=read_blkdev_capacity(clp->outfd,&out_num_sect,&out_sect_sz)' is always true sg3_utils-1.46/testing/sgh_dd.cpp:493:47: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:694:13: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1202:39: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1225:30: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1379:39: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1390:39: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1438:12: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1604:42: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1629:51: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1650:43: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1684:47: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:1808:23: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2343:35: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2547:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2591:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2663:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2762:18: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2782:46: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2784:47: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2787:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2830:51: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2841:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2869:36: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2899:36: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:2973:28: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:3389:17: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:3458:17: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:3462:32: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:3609:19: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:4764:48: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:4783:33: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:4787:43: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:4800:37: style: C-style pointer casting [cstyleCast] sg3_utils-1.46/testing/sgh_dd.cpp:3648:9: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] sg3_utils-1.46/testing/sgh_dd.cpp:3631:17: note: res is assigned sg3_utils-1.46/testing/sgh_dd.cpp:3648:9: note: res is overwritten sg3_utils-1.46/testing/sgh_dd.cpp:3648:9: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] sg3_utils-1.46/testing/sgh_dd.cpp:3642:17: note: res is assigned sg3_utils-1.46/testing/sgh_dd.cpp:3648:9: note: res is overwritten sg3_utils-1.46/testing/sgh_dd.cpp:2809:35: style: Same expression on both sides of '||'. [duplicateExpression] sg3_utils-1.46/testing/sgh_dd.cpp:2932:42: style: Same expression on both sides of '||'. [duplicateExpression] sg3_utils-1.46/testing/sgh_dd.cpp:4233:33: style: Same expression on both sides of '||'. [duplicateExpression] sg3_utils-1.46/testing/sgh_dd.cpp:769:21: style: The scope of the variable 'outfull' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:1794:13: style: The scope of the variable 'k' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:1794:16: style: The scope of the variable 'j' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:1797:19: style: The scope of the variable 'bp' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:1994:9: style: The scope of the variable 'res' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:2348:22: style: The scope of the variable 'b' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:2709:17: style: The scope of the variable 'flags' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:3776:13: style: The scope of the variable 'err' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:3778:10: style: The scope of the variable 'ebuff' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:3808:13: style: The scope of the variable 'err' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:3810:10: style: The scope of the variable 'ebuff' can be reduced. [variableScope] sg3_utils-1.46/testing/sgh_dd.cpp:3774:18: style:inconclusive: Function 'sg_in_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. [funcArgNamesDifferent] sg3_utils-1.46/testing/sgh_dd.cpp:390:44: note: Function 'sg_in_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sgh_dd.cpp:3774:18: note: Function 'sg_in_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sgh_dd.cpp:3806:19: style:inconclusive: Function 'sg_out_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. [funcArgNamesDifferent] sg3_utils-1.46/testing/sgh_dd.cpp:392:45: note: Function 'sg_out_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sgh_dd.cpp:3806:19: note: Function 'sg_out_open' argument 4 names different: declaration 'mmap_len' definition 'mmap_lenp'. sg3_utils-1.46/testing/sgh_dd.cpp:1453:13: style: Local variable 'n' shadows outer variable [shadowVariable] sg3_utils-1.46/testing/sgh_dd.cpp:1427:9: note: Shadowed declaration sg3_utils-1.46/testing/sgh_dd.cpp:1453:13: note: Shadow variable sg3_utils-1.46/testing/sgh_dd.cpp:1723:17: style: Local variable 'err' shadows outer variable [shadowVariable] sg3_utils-1.46/testing/sgh_dd.cpp:1427:36: note: Shadowed declaration sg3_utils-1.46/testing/sgh_dd.cpp:1723:17: note: Shadow variable sg3_utils-1.46/testing/sgh_dd.cpp:2348:22: style: Local variable 'b' shadows outer variable [shadowVariable] sg3_utils-1.46/testing/sgh_dd.cpp:2287:10: note: Shadowed declaration sg3_utils-1.46/testing/sgh_dd.cpp:2348:22: note: Shadow variable sg3_utils-1.46/testing/sgh_dd.cpp:854:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:1400:32: style: Variable 'clp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:1412:32: style: Variable 'clp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:1911:9: style: Variable 've_opcode' can be declared as const array [constVariable] sg3_utils-1.46/testing/sgh_dd.cpp:2070:32: style: Variable 'clp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:2275:32: style: Variable 'clp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:2520:23: style: Variable 'a_v4p' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:2522:32: style: Variable 'clp' can be declared as pointer to const [constVariablePointer] sg3_utils-1.46/testing/sgh_dd.cpp:3880:39: style: Parameter 'argv' can be declared as const array [constParameter] sg3_utils-1.46/testing/sgh_dd.cpp:514:16: warning: Uninitialized variable: b [uninitvar] sg3_utils-1.46/testing/sgh_dd.cpp:2556:54: note: Calling function 'sg_flags_str', 3rd argument 'b' value is sg3_utils-1.46/testing/sgh_dd.cpp:514:16: note: Uninitialized variable: b sg3_utils-1.46/testing/sgh_dd.cpp:4695:28: error: Uninitialized variable: out_sect_sz [legacyUninitvar] sg3_utils-1.46/testing/sgh_dd.cpp:1587:25: style: Variable 'res' is assigned a value that is never used. [unreadVariable] sg3_utils-1.46/testing/sgh_dd.cpp:1699:21: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diff: DONE