summaryrefslogtreecommitdiff
path: root/editeng/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-02-20 11:26:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-02-20 11:28:47 +0100
commit3be02487f09720061f5efe7f309401795c380ab9 (patch)
tree2a6494717ae9f45560e6987d6b3a33dae0193b73 /editeng/qa
parent659acfbb7d588e2fd965fcddf7593e7f7bc76d84 (diff)
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
Diffstat (limited to 'editeng/qa')
-rw-r--r--editeng/qa/unit/core-test.cxx2
1 files changed, 2 insertions, 0 deletions
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
}