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,747件の閲覧回数
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,602件の閲覧回数
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,602件の閲覧回数
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,603件の閲覧回数
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 件の賞賛
返信