From bde2836fcc23e8cb98dfa0250937e6d771b260b7 Mon Sep 17 00:00:00 2001 From: Ambroise Vincent Date: Thu, 14 Feb 2019 09:48:21 +0000 Subject: Remove several warnings reported with W=2 Improved support for W=2 compilation flag by solving some nested-extern and sign-compare warnings. The libraries are compiling with warnings (which turn into errors with the Werror flag). Outside of libraries, some warnings cannot be fixed. Change-Id: I06b1923857f2a6a50e93d62d0274915b268cef05 Signed-off-by: Ambroise Vincent --- lib/semihosting/semihosting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/semihosting/semihosting.c') diff --git a/lib/semihosting/semihosting.c b/lib/semihosting/semihosting.c index ee48dbc1..051dd008 100644 --- a/lib/semihosting/semihosting.c +++ b/lib/semihosting/semihosting.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -160,7 +160,7 @@ long semihosting_system(char *command_line) long semihosting_get_flen(const char *file_name) { long file_handle; - size_t length; + long length; assert(semihosting_connection_supported()); -- cgit v1.2.3