From 96491254b65fce7cffd714e290f61967617b203e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 12 Jul 2020 18:21:40 +0200 Subject: Do not use conflicting -werror arg --- backend/ninja/Ninja.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend/ninja/Ninja.cpp') diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 8c6f1b1..c602d10 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1030,9 +1030,11 @@ namespace backend { compileCCommand.insert(compileCCommand.end(), { ninja::NinjaArg("-Wall"), - ninja::NinjaArg("-Wextra"), - ninja::NinjaArg("-Werror=return-type") + ninja::NinjaArg("-Wextra") }); + + if(!config.errorOnWarning) + compileCCommand.push_back(ninja::NinjaArg("-Werror=return-type")); } else { -- cgit v1.2.3