Fix C compilation warnings about interleaved declarations and code.