[PATCH] newlib: Remove unused CHECK_STD_INIT() macro

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Mar 31 06:52:21 GMT 2022


---
 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.  */
 
-- 
2.34.1



More information about the Newlib mailing list