title: How to solve static declaration follows non-static declaration in GCC C code?
body: <p>I'm trying to compile the same C file on two different machines with different versions of cc.</p>
  
  <p>gcc version 3.2.3 says <code>warning: 'foo' was declared implicitly 'extern' and later 'static'</code></p>
  
  <p>gcc version 4.1.2 says <code>error: static declaration of 'foo' follows non-static declaration</code></p>
  
  <p>Both have the same CFLAGS. I'd like to make gcc 4.1.2 behave like gcc 3.2.3, that is, find an option that would turn this error into a mere warning.</p>