compilerplugins/clang/expressionalwayszero.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit c6bc9f71fb3bf92291bb7253f402d8d283ca8679 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Thu Mar 29 09:27:16 2018 +0200 disable expressionalwayszero loplugin on clang-3.8 can generate OOM Change-Id: Ie9fbed147687c06727a702616764a18d91b38e9c Reviewed-on: https://gerrit.libreoffice.org/52052 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/compilerplugins/clang/expressionalwayszero.cxx b/compilerplugins/clang/expressionalwayszero.cxx index ff69154c7dc8..66e7c699a67a 100644 --- a/compilerplugins/clang/expressionalwayszero.cxx +++ b/compilerplugins/clang/expressionalwayszero.cxx @@ -163,7 +163,12 @@ bool ExpressionAlwaysZero::TraverseStaticAssertDecl( StaticAssertDecl * ) return true; } +// on clang-3.8, this plugin can generate OOM +#if CLANG_VERSION >= 30900 loplugin::Plugin::Registration< ExpressionAlwaysZero > X("expressionalwayszero"); +#else +loplugin::Plugin::Registration< ExpressionAlwaysZero > X("expressionalwayszero", false); +#endif } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits