From 491d9ecfab33f80548c47d5092b10a39601f1ae1 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sat, 14 Apr 2018 22:29:42 +0200
Subject: [PATCH] ycm: Remove -Werror from ycm flags
This way warnings are colored differently from actual errors in vim
---
.ycm_extra_conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py
index d4a9cd71..4942991d 100644
--- a/.ycm_extra_conf.py
+++ b/.ycm_extra_conf.py
@@ -116,7 +116,7 @@ def FlagsForFile(filename, **kwargs):
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
# python list, but a "list-like" StringVec object
final_flags = MakeRelativePathsInFlagsAbsolute(
- compilation_info.compiler_flags_,
+ [x for x in compilation_info.compiler_flags_ if x != "-Werror"],
compilation_info.compiler_working_dir_)
else:
# We use default flags if GetCompilationInfoForFile can't find any flags