Warning with Processor expert with -wall option

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Warning with Processor expert with -wall option

737 Views
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 Kudos
Reply
3 Replies

477 Views
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 Kudos
Reply

477 Views
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 Kudos
Reply

477 Views
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 Kudos
Reply