tools: mkimage: use /* fallthrough */ as needed
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 May 2020 15:10:41 +0000 (17:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 May 2020 18:47:35 +0000 (14:47 -0400)
GCC recognizes /* fallthrough */ if -Wimplicit-fallthrough=3 is enabled.
Let's use it consistently.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
tools/mkimage.c

index 336376f8d0a2bbe8f555ab55bb0d3795e22a379a..d2cd1917874eef0154764351cb7c0edd274553c0 100644 (file)
@@ -211,7 +211,7 @@ static void process_args(int argc, char **argv)
                case 'f':
                        datafile = optarg;
                        params.auto_its = !strcmp(datafile, "auto");
-                       /* no break */
+                       /* fallthrough */
                case 'F':
                        /*
                         * The flattened image tree (FIT) format