Kevin Ryde wrote:
I used to compile with all kinds of -W flags and -Werror,I never found the right flags for newer gcc. I think I tried asking for -c89 mode and it turned off so much as to be unusable.
I think -Wdeclaration-after-statement should do the job.