Warning with #pragma in CW ( FNET stack)

cancel
Showing results for 
Search instead for 
Did you mean: 

Warning with #pragma in CW ( FNET stack)

360 Views
joelesco
Contributor III

Hi !

I'm using code warrior and the FNET stack with the TWR-K70. I've tried the demo of FNET stack and it's works perfectly for what I want to do. But when I export the project to an other application all the #pragma makes a warning ! May I have to include something to use the #pragma fonction ? The demo was running with the ARM compiler and my project with the ARM GCC C compiler, does that change something ?

If someone have an idea i 'll be glad ! Thanks a lot !

Labels (1)
0 Kudos
2 Replies

112 Views
nitinkothari
Contributor II

This is how it stopped warning me :

#pragma pack(1)

    blah blah

#pragma pack()

0 Kudos

112 Views
joelesco
Contributor III

Well ! I found someone who has the same problem and add for the compiler #pragma pack(pop) / #pragma pack(push) / #pragma pack(1) and use __attribute__ instead of #pragma  !  Thanks

0 Kudos