[PATCH] newlib: Remove unused CHECK_STD_INIT() macro

Corinna Vinschen vinschen@redhat.com
Fri Apr 1 13:38:41 GMT 2022


On Mar 31 08:52, Sebastian Huber wrote:
> ---
>  newlib/libc/stdio/local.h | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h
> index 86422eb11..e14586f35 100644
> --- a/newlib/libc/stdio/local.h
> +++ b/newlib/libc/stdio/local.h
> @@ -221,15 +221,6 @@ extern _READ_WRITE_RETURN_TYPE __swrite64 (struct _reent *, void *,
>    while (0)
>  #endif /* !_REENT_SMALL || _REENT_GLOBAL_STDIO_STREAMS */
>  
> -#define CHECK_STD_INIT(ptr) \
> -  do								\
> -    {								\
> -      struct _reent *_check_init_ptr = (ptr);			\
> -      if ((_check_init_ptr) && !(_check_init_ptr)->__cleanup)	\
> -	__sinit (_check_init_ptr);				\
> -    }								\
> -  while (0)
> -
>  /* Return true and set errno and stream error flag iff the given FILE
>     cannot be written now.  */

This patch is kind of obvious, but then again it should drop
CHECK_STD_INIT from libc/machine/spu/c99ppe.h and all its usages
within libc/machine/spu as well.


Thanks,
Corinna



More information about the Newlib mailing list