I'm using #pragma push / pop / define_section, etc. and I keep getting
ignoring pragma -Wunknown-pragma. Are they disabled somewhere?
Solved! Go to Solution.
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.
Thanks for the GCC wake up. I needed __attribute__ instead of #pragma.
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: