From: Patrick Delaunay Date: Fri, 21 Jun 2019 15:26:56 +0200 Subject: [U-Boot] [PATCH 18/20] cmd: pinmux: Fix warnings when compiling with W=1 In-Reply-To: <1561123618-2029-1-git-send-email-patrick.delaunay@st.com> References: <1561123618-2029-1-git-send-email-patrick.delaunay@st.com> Message-ID: <1561123618-2029-18-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch solves the following warnings: cmd/pinmux.c: In function 'do_dev': cmd/pinmux.c:26:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (ret) { ^ cmd/pinmux.c:30:2: note: here case 1: ^~~~ Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- cmd/pinmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/pinmux.c b/cmd/pinmux.c index 6c8ec51..de909a1 100644 --- a/cmd/pinmux.c +++ b/cmd/pinmux.c @@ -27,6 +27,7 @@ static int do_dev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("Can't get the pin-controller: %s!\n", name); return CMD_RET_FAILURE; } + /* fall through */ case 1: if (!currdev) { printf("Pin-controller device is not set!\n"); -- 2.7.4