Linter?
You mean compiler right? The compiler should be warning for things like this, not relying on 3rd party tools.
So, yes, if you're using a custom compiler, you kinda are to blame for shooting yourself in the foot. Just use the official binaries!