Unwarn patch for AppleClang. A few warnings were indeed coding error.