Different gcc versions print different warnings. Other gcc versions have buggy warnings. Good luck building the kernel everywhere.