From e25a89dec1cf990f3168dbd6c565e3b0d51cb151 Mon Sep 17 00:00:00 2001 From: Annie Tallund Date: Mon, 9 Aug 2021 14:26:12 +0200 Subject: add fallthrough attribute to prevent fallthorugh warning in uart, corstone-300 Change-Id: I207271d41a8dfa899ac5f53842790c4206657fe5 --- targets/corstone-300/uart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/corstone-300/uart.c b/targets/corstone-300/uart.c index cba54d8..bd7dddf 100644 --- a/targets/corstone-300/uart.c +++ b/targets/corstone-300/uart.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020 Arm Limited. All rights reserved. + * Copyright (c) 2019-2021 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -131,6 +131,7 @@ unsigned int uart_getline(char *lp, unsigned int len) { lp++; /* increment line pointer */ cnt++; /* and count */ c = LF; + __attribute__((fallthrough)); /* intentional fallthrough */ default: uart_putc(*lp = c); /* echo and store character */ fflush(stdout); -- cgit v1.2.1