but wouldn't the static code analysis complain in that example?

at least once you want to do anything meaningful with that x