Skip to content
New issue

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

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

Already on GitHub? # to your account

Avoid compile warnings due to printf format #31

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

jphickey
Copy link
Contributor

Describe the contribution

Fix #30

When using printf-style format conversions one must generally cast the argument to the intended type, as it does not happen implicitly with variable-argument functions.

In particular the existing code worked on the default (native) build but generated warnings when building on RTEMS for a 32-bit x86 target.

Testing performed
Build for i686 RTEMS and x86-64 (native) and ensure no warnings on either platform

Expected behavior changes
None.

System(s) tested on:
Ubuntu 18.04 LTS 64-bit build machine, and i686-rtems4.11 cross target.

Contributor Info
Joseph Hickey, Vantage Systems, Inc.

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

When using printf-style format conversions one must generally
cast the argument to the intended type, as it does not happen
implicitly with variable-argument functions.

In particular the existing code worked on the default (native) build
but generated warnings when building on RTEMS for a 32-bit x86 target.
@skliper skliper added this to the 1.2.0 milestone Dec 18, 2019
@skliper skliper added the CCB:Approved Indicates code approval by CCB label Dec 18, 2019
@skliper
Copy link
Contributor

skliper commented Dec 18, 2019

CCB 20191218 - Reviewed and approved for IC

@skliper skliper changed the base branch from master to merge-20191230 December 30, 2019 16:47
@skliper skliper merged commit 67fac46 into merge-20191230 Dec 30, 2019
skliper added a commit that referenced this pull request Dec 30, 2019
Fix #23, #25, #28, #30
Reviewed and approved at 2019-12-18 CCB
@skliper skliper deleted the fix-30-compile-warnings branch December 30, 2019 18:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
CCB:Approved Indicates code approval by CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants