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

Fix #606, Resolve cast-align error in VxWorks OS_TaskGetId_Impl #720

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Dec 29, 2020

Describe the contribution
Fix #606 - store taskTCB return in a void *, then cast to OS_impl_task_internal_record_t * just for the pointer math to avoid a strict alignment compiler error

Note the error was observed with cast-align=strict on Ubuntu 20.04 with ENABLE_UNIT_TESTS=true

Testing performed
Built without the error after fix. Built/ran unit tests on Ubuntu 18.04 and they all passed.

Expected behavior changes
None other than avoid compiler error

System(s) tested on

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04 (and 20.04 to confirm strict alignment error resolved)
  • Versions: Bundle + this commit

Additional context
None

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

@skliper skliper added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jan 4, 2021
@astrogeco astrogeco added CCB-20210106 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Jan 6, 2021
@astrogeco
Copy link
Contributor

CCB 2021-01-06 APPROVED

@astrogeco astrogeco changed the base branch from main to integration-candidate January 12, 2021 19:49
@astrogeco astrogeco merged commit 89bd11a into nasa:integration-candidate Jan 12, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 12, 2021
@skliper skliper deleted the fix606_cast-align-err branch February 1, 2021 21:35
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cast-align warning in OS_TaskGetId_Impl for vxworks
2 participants