diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-12 18:21:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-12 18:21:40 +0200 |
commit | 96491254b65fce7cffd714e290f61967617b203e (patch) | |
tree | 4e198e20350c11496a7b08fbf110149391405eec /backend/ninja | |
parent | fa5c1662d73cd46177a5c6e6c5eb692f527e1061 (diff) |
Do not use conflicting -werror arg
Diffstat (limited to 'backend/ninja')
-rw-r--r-- | backend/ninja/Ninja.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |