summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorAschref Ben Thabet <aschref.ben-thabet@embedded-brains.de>2020-08-11 10:41:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-17 11:59:00 +0200
commit5869c64793e5991625f58b349ce3696a9ebdc229 (patch)
tree88912a4a4b3400a1fab4268550ab458c2a4a79f5 /cpukit
parentpowerpc/io: The eieio() function clashes with FreeBSD. Change. (diff)
downloadrtems-5869c64793e5991625f58b349ce3696a9ebdc229.tar.bz2
rtems/printer.h Fix build warnings -Wclass-memaccess
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/printer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/include/rtems/printer.h b/cpukit/include/rtems/printer.h
index dbd887221e..310937cc2f 100644
--- a/cpukit/include/rtems/printer.h
+++ b/cpukit/include/rtems/printer.h
@@ -130,7 +130,11 @@ static inline void rtems_printer_task_initialize(
rtems_printer_task_context *context
)
{
- memset( context, 0, sizeof( *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 ) );
}
static inline void rtems_printer_task_set_stack_size(