You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A recent change re-introduced some printf type warnings on the 32-bit RTEMS build
To Reproduce
Build for RTEMS i686 target
Warnings are issued:
[ 65%] Building C object cfe-core/CMakeFiles/cfe-core.dir/src/sb/cfe_sb_api.c.o
/home/joe/code/cfecfs/github/cfe/fsw/cfe-core/src/sb/cfe_sb_api.c: In function 'CFE_SB_SubscribeFull':
/home/joe/code/cfecfs/github/cfe/fsw/cfe-core/src/sb/cfe_sb_api.c:899:9: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'uint32' [-Werror=format=]
(unsigned int)CFE_SB_MsgIdToValue(MsgId), Collisions);
^
cc1: all warnings being treated as errors
Expected behavior
Should build cleanly
System observed on:
Ubuntu 20.04 build host for i686-rtems4.11 target.
Additional context
This always happens with fixed width types, needs explicit cast when used with printf.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
Describe the bug
A recent change re-introduced some printf type warnings on the 32-bit RTEMS build
To Reproduce
Build for RTEMS i686 target
Warnings are issued:
Expected behavior
Should build cleanly
System observed on:
Ubuntu 20.04 build host for i686-rtems4.11 target.
Additional context
This always happens with fixed width types, needs explicit cast when used with printf.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: