From a9cd6755c7371c0b8ccbc426561d416cd541e0d3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 18 Aug 2017 10:07:47 -0400 Subject: [PATCH] Fix MSC C4100 warning for size Also see commit 42b7c4ea5673. --- secblock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secblock.h b/secblock.h index 790748a3..4e17bb7d 100644 --- a/secblock.h +++ b/secblock.h @@ -106,6 +106,8 @@ protected: //! \note size is the count of elements, and not the number of bytes static void CheckSize(size_t size) { + // Squash MSC C4100 warning for size. Also see commit 42b7c4ea5673. + CRYPTOPP_UNUSED(size); // C++ throws std::bad_alloc (C++03) or std::bad_array_new_length (C++11) here. if (sizeof(T) != 1 && size > ELEMS_MAX) throw InvalidArgument("AllocatorBase: requested size would cause integer overflow");