Commit 8d7b6374 authored by He Zhe's avatar He Zhe Committed by J. R. Okajima
Browse files

aufs: opts: Fix missing fallthrough

A compilation -Wimplicit-fallthrough warning was enabled by commit
a035d552a93b ("Makefile: Globally enable fall-through warning")
and triggers the following warning.

fs/aufs/opts.h:78:11:
warning: this statement may fall through [-Wimplicit-fallthrough=]

This patch adds comments according GNU manual.
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options

Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>
See-also: https://www.mail-archive.com/aufs-users@lists.sourceforge.net/msg05685.html
(cherry picked from commit e7619996b014c5d8fd2f6ad89542c545a207667f)
parent 4a80018d
......@@ -1499,8 +1499,10 @@ static int au_opt_br(struct super_block *sb, struct au_opt *opt,
if (opt->add.bindex < 0)
opt->add.bindex = 0;
goto add;
/* Always goto add, not fallthrough */
case Opt_prepend:
opt->add.bindex = 0;
/* fallthrough */
add: /* indented label */
case Opt_add:
err = au_br_add(sb, &opt->add,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment