   for loop initial declaration used outside C99 mode
  I get this error on every for loop. I am using Dev C++ 4.9.8.0. How can I fix this? This is how I have always used a for loop...just an example:for(int x=0;x<640;x++){    for(int y=0;y<480;y++)    { DrawPixel(screen, x,y,y/2,y/2,x/3);    }}How is the loop incorrect? 
  It's just a warning, although an annoying one. You can get rid of it by compiling in C99 mode. In the project options, go to 'parameters', then add '-std=c99' to the 'compiler' textbox.   [edited by - Beer Hunter on August 3, 2003 11:18:43 PM];  Ahhh. Thanks. I just don''t like to have any errors or warnings.thanks again ;  Assuming it doesn''t use any other C99 specific features (designated initializers, VLA''s, intN_t typedefs, etc.) you could put it into a .cpp file so it''ll compile as C++ instead of C.  (Nothing against C, I prefer it, this is just another option) 