summaryrefslogtreecommitdiffstats
path: root/sc/inc/stlalgorithm.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-05 08:56:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-05 08:56:57 +0100
commit4ce261f9f68ee710a883604181299b13cd14ae7b (patch)
treef4c6bb5e09ace005e335facaf57a788b1d311310 /sc/inc/stlalgorithm.hxx
parentRevert "remove unused code in basegfx" (diff)
downloadcore-4ce261f9f68ee710a883604181299b13cd14ae7b.tar.gz
core-4ce261f9f68ee710a883604181299b13cd14ae7b.zip
Avoid bogus MSVC 2012 (at least) "unreferenced formal parameter" warning
Change-Id: I3c1243e449e0b7851e415cf7543483d16c5ac7ec
Diffstat (limited to 'sc/inc/stlalgorithm.hxx')
-rw-r--r--sc/inc/stlalgorithm.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/stlalgorithm.hxx b/sc/inc/stlalgorithm.hxx
index bda11bfc6e12..19945c245ef2 100644
--- a/sc/inc/stlalgorithm.hxx
+++ b/sc/inc/stlalgorithm.hxx
@@ -62,7 +62,11 @@ public:
AlignedAllocator(const AlignedAllocator<_Type2,_Alignment>&) {}
void construct(T* p, const value_type& val) { new(p) value_type(val); }
- void destroy(T* p) { p->~value_type(); }
+ void destroy(T* p)
+ {
+ p->~value_type();
+ (void)p; // avoid bogus MSVC '12 "unreferenced formal parameter" warning
+ }
size_type max_size() const
{