anbox/0005-Off-Werror.patch
2021-01-02 13:40:19 +03:00

30 lines
919 B
Diff

From 417ae38718424effe2e807533f6a224ba5a08404 Mon Sep 17 00:00:00 2001
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Date: Sat, 2 Jan 2021 03:08:30 +0300
Subject: [PATCH] Off -Werror
There is a lot of old, copy-pastred, not well maintained code here which fails to build.
---
CMakeLists.txt | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c44854..9452edc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,11 +38,7 @@ endif()
string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_lower)
-if ("${cmake_build_type_lower}" STREQUAL "release" OR "${cmake_build_type_lower}" STREQUAL "relwithdebinfo")
- option(Werror "Treat warnings as errors" ON)
-else()
- option(Werror "Treat warnings as errors" OFF)
-endif()
+option(Werror "Treat warnings as errors" OFF)
if (${Werror})
message(STATUS "Treat warnings as errors")
--
2.30.0