-
Notifications
You must be signed in to change notification settings - Fork 3k
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 ethernet API build warnings for LPC4088 #5320
Fix ethernet API build warnings for LPC4088 #5320
Conversation
LGTM, lets run build only to be certain this is all toolchains compatible |
/morph build |
@sarahmarshy review pls One way to do this also is to use |
Build : SUCCESSBuild number : 256 Skipping test trigger, missing label 'NEED CI' |
Should probably switch to MBED_PACKED actually since it looks like PACKED is older, but it just defines back to MBED_PACKED internally: |
BUMP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
/morph test |
Test : SUCCESSBuild number : 148 |
@kegilbert Are you proposing to make a change still on this PR then ? |
…. Placement of packed attribute was causing warnings due to following typedef
c8a10c2
to
901157b
Compare
@adbridge I just updated the PR, I was going to gauge if anyone had thoughts on it first. Decided to change it to MBED_PACKED since I'd seen it used a bit more in mbed_toolchain and some filesystem implementations. |
/morph build |
Build : FAILUREBuild number : 348 |
Please ignore the failure #5320 (comment) , plugin triggered the build twice. |
Build : SUCCESSBuild number : 349 Triggering tests/morph test |
Test : SUCCESSBuild number : 159 |
LPC4088 ethernet_api build warning fixes to address #5318
Looked like an issue with using a typedef on packed structs in the way it was originally written (https://stackoverflow.com/questions/12213866/is-attribute-packed-ignored-on-a-typedef-declaration).
Does this look reasonable? Tested on a locally exported blinky example for make_armc5. Saw the same warnings as the above issue before moving the PACKED attribute to the end of the struct declaration.
As a quick sanity check I ran the following with and without the PACKED attribute in the struct declaration to confirm the attribute was not silently dropped.