diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-16 17:56:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-16 17:56:08 +0100 |
commit | be067003098c9a9537b713742d14d8f502a9c0b7 (patch) | |
tree | 7fd74fcbfcd297d4e8461ac82fd0935ba59b8371 /ucb | |
parent | 440720e14deb7020ba8d3158c3325c2d588664a1 (diff) |
Silence loplugin:redundantcast false warning
...that is curiously only reported when building with clang -std=gnu++17:
> sc/qa/unit/ucalc_condformat.cxx:185:80: error: redundant const_cast from 'ScConditionalFormat *' to 'const ScConditionalFormat *', result is implictly cast to 'const ScConditionalFormat *const' [loplugin:redundantcast]
> CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong conditional format instance.", pCheck, const_cast<const ScConditionalFormat*>(pFormat));
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:230:32: note: expanded from macro 'CPPUNIT_ASSERT_EQUAL_MESSAGE'
> (actual), \
> ~^~~~~~~
> 1 error generated.
> make[1]: *** [solenv/gbuild/LinkTarget.mk:270: workdir/CxxObject/sc/qa/unit/ucalc_condformat.o] Error 1
Change-Id: If2e8577bad4ec7454d584eb59106734d47f876ad
Diffstat (limited to 'ucb')
0 files changed, 0 insertions, 0 deletions