Clean up -Wtautological-compare -Wformat warnings.