Skip to content

Commit 35d590b

Browse files
committed
[MSVC] Refactor -Werror
1 parent 5b807a1 commit 35d590b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Basic/Warnings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags,
134134
// the deprecated -Werror-implicit-function-declaration which is used by
135135
// a few projects.
136136
#ifdef _WIN32
137-
isPositive = false;
137+
if (Opt == "error")
138+
isPositive = false;
138139
#endif
139140
if (Opt.startswith("error")) {
140141
StringRef Specifier;

0 commit comments

Comments
 (0)