Fix analyzer warnings

Came up when building with a recent Xcode preview