How do you add the following warning removal to my compile operation: -Wno-unknown-pragmas

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

How do you add the following warning removal to my compile operation: -Wno-unknown-pragmas

跳至解决方案
1,715 次查看
terrybiberdorf
Contributor II

I have 100s of the following warnings showing up when I build my code and I would like to remove them:

C:/Freescale/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:45:0: warning: ignoring #pragma options align [-Wunknown-pragmas]

 

I believe this can be done with the following compile directive:

-Wno-unknown-pragmas


But I cannot figure out with CodeWarrior 10.6 where to apply it?


Thanks.

标签 (1)
0 项奖励
回复
1 解答
1,570 次查看
terrybiberdorf
Contributor II

Found the solution.  I placed my -Wno-unknown-pragmas in the Command line pattern: box.

pastedImage_0.png

Thanks for you suggestion.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,570 次查看
catalindemergia
Contributor IV

Hello,

In CodeWarrior 10.6 you can go to project settings (select the project folder, right-click , Properties)and then select Settings.

After that select “StarCore 3900 C/C++ Compiler/Compiler/Warnings/Compiler Front End Messages” and you will see an Invalid Pragmas option, you can

change the default into what you want.

Hope this helps,

Catalin

0 项奖励
回复
1,571 次查看
terrybiberdorf
Contributor II

Found the solution.  I placed my -Wno-unknown-pragmas in the Command line pattern: box.

pastedImage_0.png

Thanks for you suggestion.

0 项奖励
回复