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 caddr_t compilation errors #112

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Fix caddr_t compilation errors #112

merged 1 commit into from
Oct 3, 2023

Conversation

matiasilva
Copy link
Contributor

@matiasilva matiasilva commented Feb 14, 2023

Two files in the Freescale SDK make use of caddr_t which is a presently unused data type. This StackExchange discussion sheds more light into it and instructs all references of this type to be replaced with void *, which is what I have done in this PR.

I'm not too sure why I got this error and some of my colleagues didn't, I can only assume it is because of my development platform: macOS Ventura with the latest ARM GNU toolchain downloaded 1 day ago: 12.2 rel-1.

I'm not even sure if this is the right fix or if this breaks something, but I couldn't think of any alternatives. The function using this _sbrk itself confuses me as it is defined twice in two files with one conditionally existing on a couple of #defines that I don't have the time to look for. Might this be function overloading?

The firmware successfully compiled for me after this, so...

@matiasilva matiasilva changed the title Fix caddr_t compilation errors Fix caddr_t compilation errors Feb 14, 2023
@phillipstanleymarbell phillipstanleymarbell merged commit 694db0e into physical-computation:master Oct 3, 2023
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