Warning with #pragma in CW ( FNET stack)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Warning with #pragma in CW ( FNET stack)

821件の閲覧回数
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 !

ラベル(1)
タグ(4)
0 件の賞賛
2 返答(返信)

573件の閲覧回数
nitinkothari
Contributor II

This is how it stopped warning me :

#pragma pack(1)

    blah blah

#pragma pack()

0 件の賞賛

573件の閲覧回数
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 件の賞賛