From 4e969445d3ae80f8c6283bd94323223bf26701dc Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 28 Nov 2011 22:17:09 +0000 Subject: [PATCH] Add missing equals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145290 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/Warnings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Frontend/Warnings.cpp b/lib/Frontend/Warnings.cpp index cc7c48ce48..e63bc21cb4 100644 --- a/lib/Frontend/Warnings.cpp +++ b/lib/Frontend/Warnings.cpp @@ -133,7 +133,7 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, // Set the warning as error flag for this specifier. Diags.setDiagnosticGroupWarningAsError(Specifier, isPositive); } else if (DiagIDs->getDiagnosticsInGroup(Specifier, _Diags)) { - EmitUnknownDiagWarning(Diags, "-Werror", Specifier, isPositive); + EmitUnknownDiagWarning(Diags, "-Werror=", Specifier, isPositive); } continue; } @@ -161,7 +161,8 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, // Set the error as fatal flag for this specifier. Diags.setDiagnosticGroupErrorAsFatal(Specifier, isPositive); } else if (DiagIDs->getDiagnosticsInGroup(Specifier, _Diags)) { - EmitUnknownDiagWarning(Diags, "-Wfatal-errors", Specifier, isPositive); + EmitUnknownDiagWarning(Diags, "-Wfatal-errors=", Specifier, + isPositive); } continue; } -- 2.40.0