aboutsummaryrefslogtreecommitdiff
path: root/src/sg_reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_reset.c')
-rw-r--r--src/sg_reset.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sg_reset.c b/src/sg_reset.c
index e254910f..49103d4b 100644
--- a/src/sg_reset.c
+++ b/src/sg_reset.c
@@ -1,5 +1,5 @@
/* A utility program originally written for the Linux OS SCSI subsystem.
- * Copyright (C) 1999-2016 D. Gilbert
+ * Copyright (C) 1999-2017 D. Gilbert
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
@@ -29,7 +29,7 @@
#define ME "sg_reset: "
-static const char * version_str = "0.61 20160405";
+static const char * version_str = "0.62 20170915";
#ifndef SG_SCSI_RESET
#define SG_SCSI_RESET 0x2284
@@ -266,6 +266,10 @@ int main(int argc, char * argv[])
break;
case EINVAL:
pr2serr(ME "SG_SCSI_RESET not supported (for value=0x%x)\n", k);
+#if defined(__GNUC__) || defined(__clang__)
+ __attribute__((fallthrough));
+ /* FALL THROUGH */
+#endif
default:
perror(ME "SG_SCSI_RESET failed");
break;