How to suppress a specific compiler warning message CW 11.1

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

How to suppress a specific compiler warning message CW 11.1

ソリューションへジャンプ
956件の閲覧回数
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 解決策
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 件の賞賛
返信
2 返答(返信)
926件の閲覧回数
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 件の賞賛
返信
942件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi @lslonim 

Please add  -WmsgSd1420 to compiler setting to disable C1420

ZhangJennie_1-1744860548332.png

 

 

Thanks,

Jun Zhang

0 件の賞賛
返信