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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
906 Views
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.

Labels (1)
0 Kudos
1 Solution
761 Views
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.

View solution in original post

0 Kudos
2 Replies
761 Views
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 Kudos
762 Views
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 Kudos