Skip to content

Commit

Permalink
Merge "Switch to clang-4579689."
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhines authored and Gerrit Code Review committed Feb 6, 2018
2 parents 035f779 + 599a603 commit fa54e75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions cc/config/clang.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,19 @@ func init() {
// fixed.
//"-Werror=null-dereference",
"-Werror=return-type",

// http://b/72331526 Disable -Wtautological-* until the instances detected by these
// new warnings are fixed.
"-Wno-error=tautological-constant-compare",

// http://b/72331524 Allow null pointer arithmetic until the instances detected by
// this new warning are fixed.
"-Wno-error=null-pointer-arithmetic",

// http://b/72330874 Disable -Wenum-compare until the instances detected by this new
// warning are fixed.
"-Wno-error=enum-compare",
"-Wno-error=enum-compare-switch",
}, " "))
}

Expand Down
4 changes: 2 additions & 2 deletions cc/config/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ var (

// prebuilts/clang default settings.
ClangDefaultBase = "prebuilts/clang/host"
ClangDefaultVersion = "clang-4393122"
ClangDefaultShortVersion = "5.0.1"
ClangDefaultVersion = "clang-4579689"
ClangDefaultShortVersion = "6.0.1"

// Directories with warnings from Android.bp files.
WarningAllowedProjects = []string{
Expand Down

0 comments on commit fa54e75

Please sign in to comment.