How to suppress a specific compiler warning message CW 11.1

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

How to suppress a specific compiler warning message CW 11.1

跳至解决方案
955 次查看
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 项奖励
回复
1 解答
940 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi @lslonim 

Please add  -WmsgSd1420 to compiler setting to disable C1420

ZhangJennie_1-1744860548332.png

 

 

Thanks,

Jun Zhang

在原帖中查看解决方案

0 项奖励
回复
2 回复数
925 次查看
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 项奖励
回复
941 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi @lslonim 

Please add  -WmsgSd1420 to compiler setting to disable C1420

ZhangJennie_1-1744860548332.png

 

 

Thanks,

Jun Zhang

0 项奖励
回复