Avoid loplugin:casttovoid with recent Clang 19 trunk
commit8c49dab215ed012fea195ea71cea079ddaa97ba3
authorStephan Bergmann <stephan.bergmann@allotropia.de>
Sun, 5 May 2024 15:10:37 +0000 (5 17:10 +0200)
committerStephan Bergmann <stephan.bergmann@allotropia.de>
Sun, 5 May 2024 19:07:44 +0000 (5 21:07 +0200)
treef66c466504d22f2555be5b5703f2be31e535bd2b
parentc44be10034e66569e1db8f9dc52918caf4f9cb6a
Avoid loplugin:casttovoid with recent Clang 19 trunk

> In file included from sc/source/core/data/autonamecache.cxx:23:
> In file included from sc/inc/dociter.hxx:23:
> In file included from sc/inc/formulagroup.hxx:17:
> sc/inc/stlalgorithm.hxx:52:9: error: unnecessary cast to void [loplugin:casttovoid]
>    52 |         (void)p; // avoid bogus MSVC '12 "unreferenced formal parameter" warning
>       |         ^~~~~~~
> sc/inc/stlalgorithm.hxx:51:9: note: first consumption is here [loplugin:casttovoid]
>    51 |         p->~value_type();
>       |         ^

Change-Id: I14bcc32fcaf3026a9c3c36e522b1e61da15f224f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167158
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
sc/inc/stlalgorithm.hxx