I declared a variable in this way:
int i = 0;
I get the warning:
ISO C90 forbids mixed declarations and code >
ISO C90 forbids mixed declarations and code
Make sure the variable is on the top part of the block, and in case you compile it with -ansi-pedantic, make sure it looks like this:
-ansi-pedantic
function() { int i; i = 0; someCode(); }