<div dir="ltr"><div>Hi,</div><div><br></div><div>How do I reproduce this? I tried using the config produced by</div><div>------------------------------------ </div><div>$ ./waf bsp_defaults --rtems-bsps=arm/realview_pbx_a9_qemu</div><div>------------------------------------<br></div><div><br></div><div>which has:</div><div>------------------------------------<br></div><div># Warning flags passed to the C and C++ compiler<br>WARNING_FLAGS = -Wall<br></div><div>------------------------------------<br></div><div><br></div><div>and I enabled the SMP tests:</div><div>------------------------------------<br></div><div># Enable the Symmetric Multiprocessing (SMP) support<br>RTEMS_SMP = True<br></div><div>...</div><div># Build the test programs<br>BUILD_TESTS = True<br></div><div>------------------------------------<br></div><div><br></div><div>It still does not show me any warning during the step</div><div>------------------------------------<br></div><div>$ ./waf </div><div>------------------------------------</div><div><br></div><div>Also, why do we have both: </div><div><br></div><div>------------------------------------------------------------------------<br></div><div># Warning flags passed to the C and C++ compiler<br>WARNING_FLAGS = -Wall<br># Warning flags passed to the C compiler<br>CC_WARNING_FLAGS = -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs<br></div><div>------------------------------------------------------------------------<br></div><div><br></div><div>Does not "-Wall" cover all the warnings? Why are we passing arguments for some warnings individually when we already passed -Wall?</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 30, 2021 at 11:18 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@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">This patch introduced new warnings:<br>
<br>
../../../cpukit/score/src/schedulerstrongapa.c: In function <br>
'_Scheduler_strong_APA_Get_highest_ready':<br>
../../../cpukit/score/src/schedulerstrongapa.c:394:10: warning: <br>
'highest_ready' may be used uninitialized in this function <br>
[-Wmaybe-uninitialized]<br>
   394 |       if ( curr_node == highest_ready ) {<br>
       |          ^<br>
../../../cpukit/score/src/schedulerstrongapa.c: In function <br>
'_Scheduler_strong_APA_Enqueue':<br>
../../../cpukit/score/src/schedulerstrongapa.c:600:38: warning: <br>
'cpu_to_preempt' may be used uninitialized in this function <br>
[-Wmaybe-uninitialized]<br>
   600 |     curr_strong_node->cpu_to_preempt = cpu_to_preempt;<br>
       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~<br>
../../../cpukit/score/src/schedulerstrongapa.c:676:33: note: <br>
'cpu_to_preempt' was declared here<br>
   676 |   Per_CPU_Control              *cpu_to_preempt;<br>
       |                                 ^~~~~~~~~~~~~~<br>
In file included from ../../../cpukit/include/rtems/score/objectdata.h:25,<br>
                  from ../../../cpukit/include/rtems/score/thread.h:32,<br>
                  from ../../../cpukit/include/rtems/score/scheduler.h:23,<br>
                  from <br>
../../../cpukit/include/rtems/score/schedulerstrongapa.h:41,<br>
                  from ../../../cpukit/score/src/schedulerstrongapa.c:67:<br>
../../../cpukit/include/rtems/score/chainimpl.h:677:18: warning: <br>
'lowest_reachable' may be used uninitialized in this function <br>
[-Wmaybe-uninitialized]<br>
   677 |   the_node->next = tail;<br>
       |   ~~~~~~~~~~~~~~~^~~~~~<br>
../../../cpukit/score/src/schedulerstrongapa.c:497:32: note: <br>
'lowest_reachable' was declared here<br>
   497 |   Scheduler_Node              *lowest_reachable;<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax:   +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
</blockquote></div>