mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 20:38:03 +00:00

This issue was triggered by sparse tool: lib/libc/putchar.c:9:5: warning: symbol '__putchar' was not declared. Should it be static? Instead of setting __putchar as static, just remove the function and directly use putchar() with a weak attribute. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ib35e4ba064f06010851bb860269b08462fe3d3bd
13 lines
206 B
C
13 lines
206 B
C
/*
|
|
* Copyright (c) 2013-2023, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#pragma weak putchar
|
|
int putchar(int c)
|
|
{
|
|
return c;
|
|
}
|