Hello SDK developers,
Thank you for software support. We use the FLEX-CAN driver which can be found at
https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/drivers/flexcan/fsl_flexcan.c
https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/drivers/flexcan/fsl_flexcan.h
Currently we compile our project with the C99 or GNU99 standard.
When we compile this driver, a lot of warnings are issued by the GNU compiler. (With the C2x standard, the warnings are gone.)
Please can you specify the C standard to which the SDK drivers are compliant. Thank you.
Thank you, Alice, for you response.
Yes, indeed. When compiling with the C99 standard we get 52 warnings. But the number of different warnings is less:
Maybe you want to specify from which FSL version which coding standard is required. Thanks.
Hello @scotty
The SDK drivers are primarily written to be compliant with the C99 standard.
The fact that the warnings disappear when using the C2x standard suggests that some constructs in the SDK drivers are more aligned with newer C standards or that the GNU compiler is more lenient in C2x mode.
BR
Alice