From e30c833466306d5eb4da5e5e8cd82bd3898e8f47 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 6 Jun 2022 00:42:31 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20disable=20-Werror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/CompilerWarnings.cmake | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 0bf53f9..a484e3b 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -1,5 +1,5 @@ function(set_project_warnings project_name) - option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" ON) + option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF) set(MSVC_WARNINGS /W4 # Baseline reasonable warnings diff --git a/meson.build b/meson.build index 13e3a2f..0c28fd3 100644 --- a/meson.build +++ b/meson.build @@ -5,7 +5,7 @@ project('cachyos-installer', 'cpp', default_options: ['cpp_std=c++20', 'buildtype=debugoptimized', 'warning_level=3', - 'werror=true', + 'werror=false', 'b_ndebug=if-release']) is_debug_build = get_option('buildtype').startswith('debug')