From 3d29f99af725e3a5828180514acdd555e19c7c6f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 30 Jun 2018 19:40:47 -0400 Subject: [PATCH] Clear warnings at -Wall -Wextra --- cham-simd.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/cham-simd.cpp b/cham-simd.cpp index 0fb9f44c..1bab32b2 100644 --- a/cham-simd.cpp +++ b/cham-simd.cpp @@ -73,7 +73,11 @@ inline __m128i UnpackXMM(const __m128i& a, const __m128i& b, const __m128i& c, c const __m128i& e, const __m128i& f, const __m128i& g, const __m128i& h) { // Should not be instantiated - CRYPTOPP_ASSERT(0);; + CRYPTOPP_UNUSED(a); CRYPTOPP_UNUSED(b); + CRYPTOPP_UNUSED(c); CRYPTOPP_UNUSED(d); + CRYPTOPP_UNUSED(e); CRYPTOPP_UNUSED(f); + CRYPTOPP_UNUSED(g); CRYPTOPP_UNUSED(h); + CRYPTOPP_ASSERT(0); return _mm_setzero_si128(); } @@ -233,7 +237,8 @@ template inline __m128i UnpackXMM(const __m128i& v) { // Should not be instantiated - CRYPTOPP_ASSERT(0);; + CRYPTOPP_UNUSED(v); CRYPTOPP_ASSERT(0); + return _mm_setzero_si128(); } @@ -839,7 +844,9 @@ template inline __m128i UnpackXMM(const __m128i& a, const __m128i& b, const __m128i& c, const __m128i& d) { // Should not be instantiated - CRYPTOPP_ASSERT(0);; + CRYPTOPP_UNUSED(a); CRYPTOPP_UNUSED(b); + CRYPTOPP_UNUSED(c); CRYPTOPP_UNUSED(d); + CRYPTOPP_ASSERT(0); return _mm_setzero_si128(); } @@ -899,7 +906,7 @@ template inline __m128i UnpackXMM(const __m128i& v) { // Should not be instantiated - CRYPTOPP_ASSERT(0);; + CRYPTOPP_UNUSED(v); CRYPTOPP_ASSERT(0); return _mm_setzero_si128(); }