Only use Werror and various Wno-stuff on release builds, lots of warnings print in debug, prevent compilation in release.
Merge pull request #6119 from kevingranade/change-warning-handling

Only use Werror and various Wno-stuff on release builds.