summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2017-03-29 09:36:03 +0200
committerMichael Brown2017-03-29 09:36:45 +0200
commit5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f (patch)
tree3f69e821428c32483724f3f1ba83f4211ec11572 /src/arch
parent[mucurses] Fix erroneous __nonnull attribute (diff)
downloadipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.tar.gz
ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.tar.xz
ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.zip
[build] Avoid implicit-fallthrough warnings on GCC 7
Reported-by: Vinson Lee <vlee@freedesktop.org> Reported-by: Liang Yan <lyan@suse.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/image/bzimage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/image/bzimage.c b/src/arch/x86/image/bzimage.c
index e3c4cb83..51498bf9 100644
--- a/src/arch/x86/image/bzimage.c
+++ b/src/arch/x86/image/bzimage.c
@@ -282,9 +282,11 @@ static int bzimage_parse_cmdline ( struct image *image,
case 'G':
case 'g':
bzimg->mem_limit <<= 10;
+ /* Fall through */
case 'M':
case 'm':
bzimg->mem_limit <<= 10;
+ /* Fall through */
case 'K':
case 'k':
bzimg->mem_limit <<= 10;