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

IAR compiler compatibility break in image.h #2126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Karambite
Copy link

@Karambite Karambite commented Nov 19, 2024

Updated image.h to avoid breaking for IAR compiler.

#ifndef __packed
#define __packed __attribute__((__packed__))
#endif

This is a compatibility break with the IAR compiler. __packed is already a keyword that eliminates padding between members. This is not a definition, meaning it will always fall under the #ifndef. Any additions that use __packed will be replaced by the definition given.

I created a macro that will pack the structures based on the compiler used.

@nordicjm nordicjm linked an issue Nov 19, 2024 that may be closed by this pull request
@nordicjm
Copy link
Collaborator

Commit needs a sign off and message text adding to commit i.e. git commit --amend -s then add description

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.

IAR compiler compatibility break in image.h
2 participants