[Libreoffice-commits] core.git: editeng/qa
Stephan Bergmann
sbergman at redhat.com
Tue Feb 20 10:29:09 UTC 2018
editeng/qa/unit/core-test.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 3be02487f09720061f5efe7f309401795c380ab9
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Feb 20 11:26:56 2018 +0100
Blind fix for -Werror,-Wunused-variable on macOS
...after c40ef4d19bfecd91e16a104a657d01196d855630 "workaround jenkins failure on
OSX". Probably better to keep executing the code under test than to #if-out the
whole block.
Change-Id: I83c21c532cd69f72834e4a242f767cca419b04ea
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx
index 94a2aa4a5cda..b34ad8bb18f8 100644
--- a/editeng/qa/unit/core-test.cxx
+++ b/editeng/qa/unit/core-test.cxx
@@ -1895,6 +1895,8 @@ void Test::testHoriAlignIgnoreTrailingWhitespace()
// this keeps failing on OSX with a value of 4495
#if !defined(MACOSX)
CPPUNIT_ASSERT_DOUBLES_EQUAL(static_cast<long>(4527), pLine->GetStartPosX(), 10);
+#else
+ (void) pLine; // avoid -Wunused-variable
#endif
}
More information about the Libreoffice-commits
mailing list