kernel: temp disable useless errors to fix build in newer gcc versions

workaround to fix build, this should be fixed in source soon
Change-Id: I334bd2a2e8eaca84055eee528e32d8214406ceb4