aboutsummaryrefslogtreecommitdiff
path: root/lib/sg_pt_linux.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2013-10-14 21:10:47 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2013-10-14 21:10:47 +0000
commit5b23dbd0a5dd3a3285c2813b97508e21c5a60310 (patch)
tree8e99179a45be4d04900125b6c8efd63e7e6659ed /lib/sg_pt_linux.c
parent189211afbafc77fdc22b7ec2cfe75fa313f12049 (diff)
downloadsg3_utils-5b23dbd0a5dd3a3285c2813b97508e21c5a60310.tar.gz
cleanup some clang warnings
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@522 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_linux.c')
-rw-r--r--lib/sg_pt_linux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sg_pt_linux.c b/lib/sg_pt_linux.c
index cf1f6ada..604c9f27 100644
--- a/lib/sg_pt_linux.c
+++ b/lib/sg_pt_linux.c
@@ -5,7 +5,7 @@
* license that can be found in the BSD_LICENSE file.
*/
-/* sg_pt_linux version 1.19 20130507 */
+/* sg_pt_linux version 1.20 20131014 */
#include <stdio.h>
@@ -252,7 +252,7 @@ set_scsi_pt_tag(struct sg_pt_base * vp, uint64_t tag)
struct sg_pt_linux_scsi * ptp = &vp->impl;
++ptp->in_err;
- tag = tag; /* dummy to silence compiler */
+ if (tag) { ; } /* unused, suppress warning */
}
/* Note that task management function codes are transport specific */
@@ -262,7 +262,7 @@ set_scsi_pt_task_management(struct sg_pt_base * vp, int tmf_code)
struct sg_pt_linux_scsi * ptp = &vp->impl;
++ptp->in_err;
- tmf_code = tmf_code; /* dummy to silence compiler */
+ if (tmf_code) { ; } /* unused, suppress warning */
}
void
@@ -271,8 +271,8 @@ set_scsi_pt_task_attr(struct sg_pt_base * vp, int attribute, int priority)
struct sg_pt_linux_scsi * ptp = &vp->impl;
++ptp->in_err;
- attribute = attribute; /* dummy to silence compiler */
- priority = priority; /* dummy to silence compiler */
+ if (attribute) { ; } /* unused, suppress warning */
+ if (priority) { ; } /* unused, suppress warning */
}
#ifndef SG_FLAG_Q_AT_TAIL