AnsweredAssumed Answered

How to enable C99 mode in codewarrior version 10.6

Question asked by Kaustubh Kagalkar on Aug 25, 2014
Latest reply on Aug 26, 2014 by Kaustubh Kagalkar



I am trying to port my code to C99 mode. For this I tried

1. #pragma on C99 ;

but this comes out with warning ignoring pragma and it shoes error where I use for(int i=0,i<XX,i++) , telling ::: for loop intial declaration only allowed in C99 mode


2.I also tried changing the compiler command to arm-none-eabi-gcc-c99 and arm-none-eabi-gcc-std=c99, which allows me to build the project without errors when using " for(int i=0,i<XX,i++)" but shows error when I try compiling the code.For errors i am attaching the jpg.



Can someone help me to enable the C99 mode.