A minor C foible that may or may not be your problem...
Every file in C requires at least 1 blank line at the end. I've had it pop up a couple of different warnings (not errors) and most often when I just can't explain it any other way, I'll go to the bottom of the source page, hit enter a couple of times and the problem goes away. (FWIW, this doesn't appear to be Pelles C specific, Watcom and Tiny do it too.)
This may or may not be your problem... but what's it going to hurt to try it?