]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Add Wimplicit-fallthrough=0 in Makefile
authorXiao Ni <xni@redhat.com>
Fri, 17 Mar 2017 11:55:42 +0000 (19:55 +0800)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Fri, 17 Mar 2017 19:56:50 +0000 (15:56 -0400)
commit8268821b434d1308d083454fb681d80176cf352b
treed9ee48a656db6977ddc40b06953e2d791356787f
parent72b616aff26e64079727ea908073027c08f99c07
mdadm: Add Wimplicit-fallthrough=0 in Makefile

There are many errors like 'error: this statement may fall through'.
But the logic is right. So add the flag Wimplicit-fallthrough=0
to disable the error messages. The method I use is from
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
#index-Wimplicit-fallthrough-375

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Makefile