[Libreoffice-commits] core.git: compilerplugins/clang
Noel Grandin
noel at peralex.com
Tue Jul 21 05:43:47 PDT 2015
compilerplugins/clang/unusedmethods.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f3872352b3e576530f9a5d27a6ab8b805d8ea911
Author: Noel Grandin <noel at peralex.com>
Date: Tue Jul 21 14:43:01 2015 +0200
fix my previous commit
Change-Id: I287d99a46eda90718a3c4ec2c92f7b063babeb24
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index ad5582e..692e91e 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -269,7 +269,7 @@ bool UnusedMethods::VisitVarDecl( const VarDecl* varDecl )
if (!recordDecl)
return true;
// workaround clang-3.5 issue
-#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 6
+#if __clang_major__ > 3 || ( __clang_major__ == 3 && __clang_minor__ >= 6 )
if (!recordDecl->getTemplateInstantiationPattern())
return true;
#endif
More information about the Libreoffice-commits
mailing list