diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2017-09-18 19:15:01 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2017-09-18 19:15:01 +0000 |
commit | 3c285acb6d8f2bf346f50ee4e3ebe878e07e2c33 (patch) | |
tree | 645885630ab780e2371bc219ba9ee843f18c421b /src/sg_reset.c | |
parent | 3e3bb389c5718f595a07cd0a51ccd0162713f44f (diff) | |
download | sg3_utils-3c285acb6d8f2bf346f50ee4e3ebe878e07e2c33.tar.gz |
https://github.com/hreinecke/sg3_utils branch sles15 synced 20170914; change sg_ll_*() function's 'int noisy' to bool
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@715 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_reset.c')
-rw-r--r-- | src/sg_reset.c | 8 |
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; |