Closed felixvanoost closed 4 months ago
Thanks ! I'll make the correction.
Should be solved in latest commit
@christophe0606 In my testing I found that the double semicolons were only part of the problem. GCC is also unhappy about the use of semicolons following a function definition. Currently these macros expand to something like this:
void myfunc(void)
{
/* Contents */
};
Which is apparently not strictly ISO C. I was able to resolve the errors for good in PR #163.
Ok. Thank you. So I'll merge your new PR.
When compiling CMSIS-DSP using GCC 10.3 with the
-pedantic
flag enabled, the compiler produces errors due to the presence of extra semicolons in theCFFTINIT_
andRFFTINIT_
macros. One example:This is happening because the macro definitions all end with semicolons, but an extra semicolon has been added when each macro is called:
In
arm_cfft_init_q31.c
:The resulting double semicolons are apparently not allowed in ISO C.