[c] How to solve static declaration follows non-static declaration in GCC C code?