I'm using #pragma push / pop / define_section, etc. and I keep getting
ignoring pragma -Wunknown-pragma. Are they disabled somewhere?
解決済! 解決策の投稿を見る。
Thanks for the GCC wake up. I needed __attribute__ instead of #pragma.
元の投稿で解決策を見る
Pragmas depend on the compiler used. So which compiler are you using? gcc? which version?
Sorry. Still messing with this one. CW 10.4 GCC. I'm new to Code Warrior.
I'm using pragmas like
#pragma pack(push)
#pragma pack(1)
....
#pragma pack(pop)
and that works fine for me. Can you verify that you are using GCC pragmas (and not Keil/IAR ones)?
A useful link could be this one:
Pragmas - Using the GNU Compiler Collection (GCC)