Fix type mismatch error caught by clang.
Disable a couple of warnings to reduce the total warning coung produced by clang.