Compiler Warnings with "-Wpedantic"

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Compiler Warnings with "-Wpedantic"

244件の閲覧回数
Masmiseim
Senior Contributor I

Hello NXP team,

 

could you test the target code for Freemaster (the one running on the microcontroller) with higher warning levels and make it warning-free? May I recommend the following warning flags:

-Wall

-Wextra

-Wpedantic

 

The code raises several Compiler-Warnings with the warning-settings from above. The following three warnings, lead to linker errors when LTO is activated:

Masmiseim_0-1725635176108.png

The following linker Errors with LTO active are created when the warnings are not solved:

Masmiseim_1-1725635176109.png

Yes, at first glance these seem to have nothing to do with the warnings. It took me a while to understand the problem.

GCC13 was used on iMXRT1170.

 

Thanks and best regards

1 返信

155件の閲覧回数
Prof_Farnsworth
Contributor I

I agree

To add to this, I also suggest to remove warnings generated with -Wundef (which seems not to be included in -Wall?)as the Freemaster header files checks a lot of potentially undefined precompiler constants.

0 件の賞賛
返信