Warning with #pragma in CW ( FNET stack)

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

Warning with #pragma in CW ( FNET stack)

1,061 次查看
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 回复数

813 次查看
nitinkothari
Contributor II

This is how it stopped warning me :

#pragma pack(1)

    blah blah

#pragma pack()

0 项奖励
回复

813 次查看
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 项奖励
回复