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

GPT: Fix prototype of function (explicit empty argument list) #293

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

jgeudens
Copy link
Contributor

The function R_GPT_PwmOutputDelayInitialize generates an compiler error (no prototype) when the "Require prototype" option is active in IAR EWARM.

The reason is that the prototype and function definition is missing void as argument.

@renesas-brandon-hussey
Copy link
Collaborator

Hi @jgeudens , thanks for the PR. Are you using the default toolchain flags of IAR EWARM or did you change them? We'll merge the fix either way, but I would like to be able to recreate it in our internal build system as I'm not seeing this warning/error currently.

@jgeudens
Copy link
Contributor Author

Hi @renesas-brandon-hussey ,

I have enable an additional option in the compiler settings.

See this screenshot from https://wwwfiles.iar.com/arm/webic/doc/EWARM_DevelopmentGuide.ENU.pdf

image

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