When I looked at the warnings, what crossed my mind was that the
solitary semicolon and the multiple declarations are correct use of
"The C Programming Language". Thus, the warnings are for coding
style.
I believe that experienced programmers get their program to work
without relying on style warnings or syntax errors from compilers.
Changing someone else's code for the sake of the a compiler's
preference will change the _expression_ of the original author.
Eclipse is used for Java so I am suspect of its warnings when using
other languages.