C-warning discovered
When compiling C-Code like the following example with VC++ 8.0 SP1:
int main (int argc, char* argv[])
{
int i = 3;
i = some_api_call ();
int j = some_other_call ();
return 0;
}
you get a C2275 warning which says something about illegal use of a type. Well, not really, it’s just you violated the C rule of mixing variables and code - you should have defined the int j
before calling a function. Took me a while to spot it cause I thought I’m in C99 mode by default with VC++ 8.0.
Update: Fixed typo