Skip to content

Fix #679, Alignment warnings in unit test#691

Merged
astrogeco merged 1 commit intonasa:integration-candidatefrom
jphickey:fix-679-ut-alignment-warnings
May 20, 2020
Merged

Fix #679, Alignment warnings in unit test#691
astrogeco merged 1 commit intonasa:integration-candidatefrom
jphickey:fix-679-ut-alignment-warnings

Conversation

@jphickey
Copy link
Contributor

@jphickey jphickey commented May 8, 2020

Describe the contribution
Resolve remaining alignment warnings in the unit test and stub code.

Testing performed
Build with ENABLE_UNIT_TESTS=true for native arch and a cross target with strict alignment requirements.
confirm no warnings on either build, all unit tests pass.

Expected behavior changes
No compiler warnings or errors on cross build.

System(s) tested on
Ubuntu 20.04 (host, little endian, 64-bit, lax alignment)
MIPS via QEMU (cross target, big endian, 32-bit, strict alignment)

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey
Copy link
Contributor Author

jphickey commented May 8, 2020

Only commit for PR/review here is 0037fc0. Created as draft due to baseline mismatch.

@skliper skliper added this to the 6.8.0 milestone May 12, 2020
@skliper
Copy link
Contributor

skliper commented May 13, 2020

CCB 20200513 - Approved conceptually, needs rebase

Resolve remaining alignment warnings in the unit test and stub code.
In es_UT.c test cases were passing a char* as a stack pointer (uint32*)
Memory pool code was also using uint8[] buffer as uint32.
Most casting becomes unnecessary when defined as the correct type.
@jphickey jphickey force-pushed the fix-679-ut-alignment-warnings branch from 0037fc0 to 744a9b4 Compare May 18, 2020 19:00
@astrogeco
Copy link
Contributor

@jphickey is this ready to merge?

@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Approved Indicates code review and approval by community CCB labels May 19, 2020
@jphickey
Copy link
Contributor Author

Correction - thought this one was the other commit ....
This one IS ready for merge.

@jphickey jphickey marked this pull request as ready for review May 20, 2020 16:23
@astrogeco astrogeco changed the base branch from master to integration-candidate May 20, 2020 18:43
@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB IC-20200513 labels May 20, 2020
@astrogeco astrogeco merged commit a702b83 into nasa:integration-candidate May 20, 2020
@jphickey jphickey deleted the fix-679-ut-alignment-warnings branch June 4, 2020 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code review and approval by community CCB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants