aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2017-08-27 06:01:12 -0400
committerJeff Layton <jlayton@samba.org>2017-08-27 06:25:55 -0400
commit99fdae64202116489d92d878fd2ae4f1397b45d2 (patch)
tree49d6f5a66ab0ea06d41e653cb32fb0f5952879b3 /mount.cifs.c
parent5513fa5aa37602b8716b7d28b1ca5cf99d446efd (diff)
downloadcifs-utils-99fdae64202116489d92d878fd2ae4f1397b45d2.tar.gz
cifs-utils-99fdae64202116489d92d878fd2ae4f1397b45d2.tar.xz
cifs-utils-99fdae64202116489d92d878fd2ae4f1397b45d2.zip
mount.cifs: add fallthrough comments on fmask/dmask option cases
...to silence a couple of compiler warnings. Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index 8ca848d..ae7a899 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1002,6 +1002,7 @@ parse_options(const char *data, struct parsed_mount_info *parsed_info)
"WARNING: CIFS mount option 'fmask' is\
deprecated. Use 'file_mode' instead.\n");
data = "file_mode"; /* BB fix this */
+ /* Fallthrough */
case OPT_FILE_MODE:
if (!value || !*value) {
fprintf(stderr,
@@ -1022,6 +1023,7 @@ parse_options(const char *data, struct parsed_mount_info *parsed_info)
"WARNING: CIFS mount option 'dmask' is\
deprecated. Use 'dir_mode' instead.\n");
data = "dir_mode";
+ /* Fallthrough */
case OPT_DIR_MODE:
if (!value || !*value) {
fprintf(stderr,