Warning with Processor expert with -wall option

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Warning with Processor expert with -wall option

761 次查看
pgo
Senior Contributor V

Hi,

I usually encourage students to compile their projects with the -wall option to catch a lot of 'newbie' errors.

While this may generate some noise it also helps catch some common errors.

Unfortunately when using PE it generates a lot of noise.  While I have no reason to believe these are actual errors it would be better if there wasn't so much clutter.

Can I ask you to consider auditing your software for common items that trigger these warning? You never know it might actually find some bugs.

An example of code that produces a warning (from startup.c):

../Project_Settings/Startup_Code/startup.c:85:62: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

   else if( !(src & mask_short) && !(dst & mask_short) && len >= size_short)

bye

0 项奖励
回复
3 回复数

501 次查看
pgo
Senior Contributor V

My apologies Marek,

The option that was active was -Wextra for extra warning.

Thank you for looking into this.

bye

0 项奖励
回复

501 次查看
marek_neuzil
NXP Employee
NXP Employee


Hello,

Thank you for reporting of this issue. I have reproduced these warnings.

I have reported the issue to our development team (PEXMCU-1745).

Best Regards,

Marek Neuzil

0 项奖励
回复

501 次查看
marek_neuzil
NXP Employee
NXP Employee

Hello,

Thatnk you for reporting this issue. I have checked several projects but I am not able to reproduce the problem.

Could you provide details (name and version) of the product, compiler and project you have used for producing of this warning. You can also attach you project to this community thread, it will help us to reproduce this issue.

Best Regards,

Marek Neuzil

0 项奖励
回复