Skip to content

Commit

Permalink
Revert "[clang][deps] During scanning don't emit warnings-as-errors t…
Browse files Browse the repository at this point in the history
…hat are ignored with diagnostic pragmas."

This reverts commit eac90d1.

This change is causing a test failure on the PS4/PS5 bots:
https://lab.llvm.org/buildbot/#/builders/139/builds/31784
https://lab.llvm.org/buildbot/#/builders/216/builds/13476
  • Loading branch information
dyung committed Nov 29, 2022
1 parent bec8a37 commit 2f8ac18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
Expand Up @@ -135,8 +135,8 @@ static void sanitizeDiagOpts(DiagnosticOptions &DiagOpts) {
DiagOpts.ShowCarets = false;
// Don't write out diagnostic file.
DiagOpts.DiagnosticSerializationFile.clear();
// Don't emit warnings as errors (and all other warnings too).
DiagOpts.IgnoreWarnings = true;
// Don't treat warnings as errors.
DiagOpts.Warnings.push_back("no-error");
}

/// A clang tool that runs the preprocessor in a mode that's optimized for
Expand Down
35 changes: 0 additions & 35 deletions clang/test/ClangScanDeps/diagnostic-pragmas.c

This file was deleted.

0 comments on commit 2f8ac18

Please sign in to comment.