Unwarn patch for Clang. Two of the warnings were indeed coding error.
Warnings from third-party libraries are ignored as they appear to be harmless.