diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-10-09 16:28:13 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-10-09 17:25:28 +0200 |
commit | 4d05099806fc6116fbd7abe992d7f2f31210dd4c (patch) | |
tree | 0ad8389759bdd8c976cbe7da1180c4093459d0c7 /compilerplugins | |
parent | move some code to a common base (diff) | |
download | core-4d05099806fc6116fbd7abe992d7f2f31210dd4c.tar.gz core-4d05099806fc6116fbd7abe992d7f2f31210dd4c.zip |
do not force compiler plugin warnings to errors with -Werror, for now
Change-Id: I87585fce44e803513d5345709d9723075b9429a1
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/compileplugin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/compileplugin.cxx b/compilerplugins/clang/compileplugin.cxx index 99ab2725d7c5..e5d34a32ccd5 100644 --- a/compilerplugins/clang/compileplugin.cxx +++ b/compilerplugins/clang/compileplugin.cxx @@ -32,12 +32,14 @@ Plugin::Plugin( ASTContext& context ) DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc ) { - // Do some mappings (e.g. for -Werror) that clang does not do for custom messages for some reason. DiagnosticsEngine& diag = context.getDiagnostics(); +#if 0 + // Do some mappings (e.g. for -Werror) that clang does not do for custom messages for some reason. if( level == DiagnosticsEngine::Warning && diag.getWarningsAsErrors()) level = DiagnosticsEngine::Error; if( level == DiagnosticsEngine::Error && diag.getErrorsAsFatal()) level = DiagnosticsEngine::Fatal; +#endif return diag.Report( loc, diag.getCustomDiagID( level, message )); } |