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

lib: Remove warnings from -Wcast-align #388

Merged
merged 1 commit into from
May 24, 2022
Merged

Conversation

edmooring
Copy link
Contributor

There were several places in the library where a char* was used to point
to a wider type (uint32_t or a struct). Casting the char* to the wider
type resulted in a compiler warning.

This commit adds a cast to void* to remove the compiler warnings. This
results in no functional change.

Signed-off-by: Ed Mooring [email protected]

lib/remoteproc/rsc_table_parser.c Outdated Show resolved Hide resolved
lib/proxy/rpmsg_retarget.c Outdated Show resolved Hide resolved
lib/remoteproc/rsc_table_parser.c Outdated Show resolved Hide resolved
There were several places in the library where a char* was used to point
to a wider type (uint32_t or a struct). Casting the char* to the wider
type resulted in a compiler warning.

This commit changes some simple casts to (void *) to silence compiler
warnings. In rsc_table_parser.c, replace casts and pointer arithmetic
with explicit uses of fw_rsc_hdr.

Signed-off-by: Ed Mooring <[email protected]>
@arnopo arnopo added this to the Release V2022.10 milestone May 16, 2022
@arnopo arnopo merged commit 0107a28 into OpenAMP:main May 24, 2022
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.

2 participants