From 3c285acb6d8f2bf346f50ee4e3ebe878e07e2c33 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Mon, 18 Sep 2017 19:15:01 +0000 Subject: 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 --- src/sg_reset.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/sg_reset.c') 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; -- cgit v1.2.3