Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format conversion error in coverage test #60

Closed
jphickey opened this issue Apr 27, 2020 · 0 comments · Fixed by #61 or #63
Closed

Format conversion error in coverage test #60

jphickey opened this issue Apr 27, 2020 · 0 comments · Fixed by #61 or #63
Labels
bug Something isn't working
Milestone

Comments

@jphickey
Copy link
Contributor

Describe the bug
When compiling the coverage test on RTEMS, a format conversion error is triggered:

/home/joe/code/cfecfs/github/apps/sample_app/unit-test/coveragetest/coveragetest_sample_app.c:152:5: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32' [-Werror=format=]
     UtAssert_True(SAMPLE_AppData.RunStatus == CFE_ES_RunStatus_APP_ERROR,
     ^
cc1: all warnings being treated as errors

To Reproduce
Build with ENABLE_UNIT_TESTS=TRUE for i686-rtems4.11 platform

Expected behavior
Should build clean

System observed on:
i686-rtems4.11 cross build

Reporter Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey added the bug Something isn't working label Apr 27, 2020
jphickey added a commit to jphickey/sample_app that referenced this issue Apr 27, 2020
Corrects a format mismatch warning on some platforms.
jphickey added a commit to jphickey/sample_app that referenced this issue Apr 27, 2020
Corrects a format mismatch warning on some platforms.
astrogeco added a commit that referenced this issue May 8, 2020
Fix #60, incorrect conversion specifier
@astrogeco astrogeco added this to the 1.2.0 milestone Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants