Warning with #pragma in CW ( FNET stack)
03-21-2014
12:50 AM
1,294 Views

joelesco
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 !
2 Replies
09-03-2014
08:12 AM
1,046 Views
nitinkothari
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is how it stopped warning me :
#pragma pack(1)
blah blah
#pragma pack()
03-21-2014
01:52 AM
1,046 Views

joelesco
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
