renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
192 stars 82 forks source link

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

Closed jgeudens closed 11 months ago

jgeudens commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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