summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2017-07-19 16:10:09 -0400
committerSteve Dickson <steved@redhat.com>2017-07-26 11:27:23 -0400
commit3187c44672b35b16e67f10137c7cc4d30c0eef73 (patch)
tree73d387bb9d0226961cc211bb5b03a0fa7b1ea478
parent8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1 (diff)
downloadnfs-utils-3187c44672b35b16e67f10137c7cc4d30c0eef73.tar.gz
nfs-utils-3187c44672b35b16e67f10137c7cc4d30c0eef73.tar.xz
nfs-utils-3187c44672b35b16e67f10137c7cc4d30c0eef73.zip
nfsd.c: removed a few warnings
nfsd.c:187:8: warning: this statement may fall through [-Wimplicit-fallthrough=] nfsd.c:213:8: warning: this statement may fall through [-Wimplicit-fallthrough=]nfsd.c:263:4: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/nfsd/nfsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index 2b38249..f973203 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -198,6 +198,7 @@ main(int argc, char **argv)
minorvers = 0;
minorversset = minormask;
}
+ /* FALLTHRU */
case 3:
case 2:
NFSCTL_VERUNSET(versbits, c);
@@ -220,6 +221,7 @@ main(int argc, char **argv)
NFSCTL_MINORSET(minorvers, i);
} else
minorvers = minorversset = minormask;
+ /* FALLTHRU */
case 3:
case 2:
NFSCTL_VERSET(versbits, c);
@@ -261,6 +263,7 @@ main(int argc, char **argv)
break;
default:
fprintf(stderr, "Invalid argument: '%c'\n", c);
+ /* FALLTHRU */
case 'h':
usage(progname);
}