<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 11, 2020 at 3:41 AM Aschref Ben-Thabet <<a href="mailto:aschref.ben-thabet@embedded-brains.de">aschref.ben-thabet@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Aschref Ben Thabet <<a href="mailto:aschref.ben-thabet@embedded-brains.de" target="_blank">aschref.ben-thabet@embedded-brains.de</a>><br>
<br>
---<br>
cpukit/include/rtems/printer.h | 6 +++++-<br>
1 file changed, 5 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/cpukit/include/rtems/printer.h b/cpukit/include/rtems/printer.h<br>
index dbd887221e..310937cc2f 100644<br>
--- a/cpukit/include/rtems/printer.h<br>
+++ b/cpukit/include/rtems/printer.h<br>
@@ -130,7 +130,11 @@ static inline void rtems_printer_task_initialize(<br>
rtems_printer_task_context *context<br>
)<br>
{<br>
- memset( context, 0, sizeof( *context ) );<br>
+ /*<br>
+ * Some C++ compiler think that the structure is complex enough to need a<br>
+ * proper constructor. Cast to void * to silence a warning.<br>
+ */<br>
+ memset( (void *) context, 0, sizeof( *context ) );<br></blockquote><div><br></div><div>I understand the patch but does this mean all header files have to be C++XX</div><div>clean? Where XX is what version of C++.</div><div><br></div><div>I'm more concerned by the implications of the patch than the patch itself.</div><div><br></div><div>--joel</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
}<br>
<br>
static inline void rtems_printer_task_set_stack_size(<br>
-- <br>
2.26.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>