Build: Default to treating warnings as errors Bug: b/130335507 Change-Id: I4cd5ab717bab39f1b03a4c6e8140603aa36c2fff Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28869 Tested-by: Ben Clayton <bclayton@google.com> Reviewed-by: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt index a922c4a..440d5a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -79,7 +79,7 @@ option (ASAN "Build with address sanitizer" 0) option (TSAN "Build with thread sanitizer" 0) option (UBSAN "Build with undefined behavior sanitizer" 0) -option (WARNINGS_AS_ERRORS "Treat all warnings as errors" 0) +option (WARNINGS_AS_ERRORS "Treat all warnings as errors" 1) option (DCHECK_ALWAYS_ON "Check validation macros even in release builds" 0) if(ARCH STREQUAL "arm")