Without seeing your code, all we can tell you is that the compiler is correct. It's never wrong, so that's easy to say.