2082068_en-US

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

2082068_en-US

2082068_en-US

How to suppress a specific compiler warning message CW 11.1

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

Re: How to suppress a specific compiler warning message CW 11.1

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

-WmsgSd1420 -WmsgSd2705

I appreciate the help!

Lloyd

Re: How to suppress a specific compiler warning message CW 11.1

Hi @lslonim 

Please add  -WmsgSd1420 to compiler setting to disable C1420

ZhangJennie_1-1744860548332.png



Thanks,

Jun Zhang

标记 (1)
无评分
版本历史
最后更新:
‎11-21-2025 09:29 PM
更新人: