diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-05-31 19:18:34 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-31 20:00:54 +0200 |
commit | 6d114cda2c5503148eef834624cb9339222a4414 (patch) | |
tree | acbf8a72cd8e582ad2d6d1cf91ad0bf13ee6b78a /compilerplugins/clang | |
parent | obey --enable-werror when building clang plugin (diff) | |
download | core-6d114cda2c5503148eef834624cb9339222a4414.tar.gz core-6d114cda2c5503148eef834624cb9339222a4414.zip |
make compiler plugin warnings follow WaE
Change-Id: I72f1a11ce86d66e773e66116c725310df77fce39
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/plugin.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx index 4df8bac23d78..330090811423 100644 --- a/compilerplugins/clang/plugin.cxx +++ b/compilerplugins/clang/plugin.cxx @@ -34,13 +34,11 @@ DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef mess SourceLocation loc ) { DiagnosticsEngine& diag = compiler.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 string fullMessage = ( message + " [loplugin]" ).str(); if( loc.isValid()) return diag.Report( loc, diag.getCustomDiagID( level, fullMessage )); |