title: Is there any way to enable for(int i=0; ... in gcc without having to turn on c99 mode
body: <p>I've got a very big program which compiles with gcc without warnings.</p>
  
  <p>If I turn on c99 mode --std=c99 on the command line, it gives a huge number of warnings and errors.</p>
  
  <p>But I love the idiom <code>for(int i=0; i&lt;20; i++){ code }</code></p>
  
  <p>in place of <code>{int i; for (i=0; i&lt;20; i++){ code }}</code> </p>
  
  <p>Is there any way to tell gcc to allow this and only this?</p>
  
  <p>Alternatively, is there any way to enable c99 mode in the particular functions I'm working on? Something like </p>
  
  <pre><code>#pragma c99 on 
  
  for(int i=0; i&lt;99; i++)
  {
      code
  }
  
  #pragma c99 off
  </code></pre>