[Libreoffice-commits] core.git: compilerplugins/clang

Noel Grandin noel at peralex.com
Thu Jan 30 05:41:54 PST 2014


 compilerplugins/clang/literaltoboolconversion.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a1aa702861694fb114403b3f2746a33eb315ed87
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Jan 30 15:37:52 2014 +0200

    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

diff --git a/compilerplugins/clang/literaltoboolconversion.cxx b/compilerplugins/clang/literaltoboolconversion.cxx
index 5c61647..d156e9b 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)


More information about the Libreoffice-commits mailing list