diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-30 15:37:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-01-30 15:41:27 +0200 |
commit | a1aa702861694fb114403b3f2746a33eb315ed87 (patch) | |
tree | 9b729ffbaef02494e07e2bdf88c8d3fd32fabf58 /compilerplugins/clang | |
parent | ce445c50d64062ea1476404a226c369aa96fd1fa (diff) |
literaltobool conversion plugin, reduce spurious warnings with clang 3.3
It appears that clang 3.3 also generates spurious warnings, so
adjust the ifdef
Change-Id: Idb57f7eafd55effd4c7c8b1f96c03c2ea6ddaba3
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/literaltoboolconversion.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/literaltoboolconversion.cxx b/compilerplugins/clang/literaltoboolconversion.cxx index 5c61647ce09b..d156e9bba186 100644 --- a/compilerplugins/clang/literaltoboolconversion.cxx +++ b/compilerplugins/clang/literaltoboolconversion.cxx @@ -121,7 +121,7 @@ bool LiteralToBoolConversion::VisitImplicitCastExpr( // // as "implicit conversion (IntegralToBoolean) of null pointer constant of type // 'std::size_t' (aka 'unsigned long') to 'bool'": -#if (__clang_major__ == 3 && __clang_minor__ >= 3) || __clang_major__ > 3 +#if (__clang_major__ == 3 && __clang_minor__ >= 4) || __clang_major__ > 3 } else if (sub->isNullPointerConstant( compiler.getASTContext(), Expr::NPC_ValueDependentIsNull) != Expr::NPCK_NotNull) |