Treated warnings as errors in Verify and Release

modes.