How to suppress a specific compiler warning message CW 11.1

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

How to suppress a specific compiler warning message CW 11.1

Jump to solution
952 Views
lslonim
Contributor II

Hi, I'm using CW 11.1 because my processor is MC9S08DZ60A. I am porting some code from another compiler. I would like to suppress compiler warning C1420, return value ignored, because it flags every printf. I found a screen that looks likely, but I put C1420 in there, and also tried just 1420, and the warnings still come up. See attached screenshot.

Is there a way to stop a specific warning message number, or a list of them?

Thanks,

Lloyd

0 Kudos
Reply
1 Solution
937 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi @lslonim 

Please add  -WmsgSd1420 to compiler setting to disable C1420

ZhangJennie_1-1744860548332.png

 

 

Thanks,

Jun Zhang

View solution in original post

0 Kudos
Reply
2 Replies
922 Views
lslonim
Contributor II

Thank you so much! That worked! Then I added more on the same line like this:

-WmsgSd1420 -WmsgSd2705

I appreciate the help!

Lloyd

0 Kudos
Reply
938 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi @lslonim 

Please add  -WmsgSd1420 to compiler setting to disable C1420

ZhangJennie_1-1744860548332.png

 

 

Thanks,

Jun Zhang

0 Kudos
Reply