[RTEMS Project] #4900: PowerPC score warnings in score headers
RTEMS trac
trac at rtems.org
Sun Apr 23 22:48:53 UTC 2023
#4900: PowerPC score warnings in score headers
--------------------------+--------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: highest | Milestone: 6.1
Component: score | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
--------------------------+--------------------
Building a few of the PowerPC BSPs with `RTEMS_DEBUG = True` generates
these warnings:
{{{
[ 319/1483] Compiling cpukit/score/cpu/powerpc/cpu.c
In file included from
../../../cpukit/score/cpu/powerpc/include/rtems/score/cpu.h:59,
from
../../../cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h:42,
from ../../../cpukit/score/cpu/powerpc/cpu.c:43:
../../../cpukit/score/cpu/powerpc/cpu.c: In function '_CPU_Fatal_halt':
../../../cpukit/include/rtems/score/basedefs.h:436:33: warning: implicit
declaration of function '_Assert' [-Wimplicit-function-declaration]
436 | #define _Assert_Unreachable() _Assert( 0 )
| ^~~~~~~
../../../cpukit/include/rtems/score/basedefs.h:865:7: note: in expansion
of macro '_Assert_Unreachable'
865 | _Assert_Unreachable(); \
| ^~~~~~~~~~~~~~~~~~~
../../../cpukit/score/cpu/powerpc/cpu.c:361:3: note: in expansion of macro
'RTEMS_UNREACHABLE'
361 | RTEMS_UNREACHABLE();
| ^~~~~~~~~~~~~~~~~
../../../cpukit/include/rtems/score/basedefs.h:436:33: warning: nested
extern declaration of '_Assert' [-Wnested-externs]
436 | #define _Assert_Unreachable() _Assert( 0 )
| ^~~~~~~
../../../cpukit/include/rtems/score/basedefs.h:865:7: note: in expansion
of macro '_Assert_Unreachable'
865 | _Assert_Unreachable(); \
| ^~~~~~~~~~~~~~~~~~~
../../../cpukit/score/cpu/powerpc/cpu.c:361:3: note: in expansion of macro
'RTEMS_UNREACHABLE'
361 | RTEMS_UNREACHABLE();
| ^~~~~~~~~~~~~~~~~
}}}
The `score` headers `basedefs.h` header depends on `assert.h` and
`assert.h` includes `basedefs.h` at it's top.
I think this ticket should be set to `blocker` for the 6.1 release. We
should resolve this and the warnings before we make a release.
--
Ticket URL: <http://devel.rtems.org/ticket/4900>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list