[PATCH] rtems/printer.h: Fix build warnings -Wclass-memaccess

Aschref Ben-Thabet aschref.ben-thabet at embedded-brains.de
Tue Sep 15 09:10:04 UTC 2020


From: Aschref Ben Thabet <aschref.ben-thabet at embedded-brains.de>

Cast to (void *) to silence the warning.
---
 cpukit/include/rtems/printer.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/cpukit/include/rtems/printer.h b/cpukit/include/rtems/printer.h
index 310937cc2f..25c6f27960 100644
--- a/cpukit/include/rtems/printer.h
+++ b/cpukit/include/rtems/printer.h
@@ -130,10 +130,6 @@ static inline void rtems_printer_task_initialize(
   rtems_printer_task_context *context
 )
 {
-  /*
-   * Some C++ compiler think that the structure is complex enough to need a
-   * proper constructor. Cast to void * to silence a warning.
-   */
   memset( (void *) context, 0, sizeof( *context ) );
 }
 
-- 
2.26.2



More information about the devel mailing list