fix warning: unused function 'SigIllHandlerSSE2' [-Wunused-function]
authorGiel van Schijndel <me@mortis.eu>
Fri, 24 Jun 2011 20:14:15 +0000 (22:14 +0200)
committerGiel van Schijndel <me@mortis.eu>
Wed, 13 Jul 2011 03:10:15 +0000 (05:10 +0200)
Only declare & define SigIllHandlerSSE2 when its used.

Signed-off-by: Giel van Schijndel <me@mortis.eu>

src/cryptopp/cpu.cpp

index 3e46804..8789dc3 100644 (file)
@@ -80,7 +80,7 @@ bool CpuId(word32 input, word32 *output)
 #endif
 }
 
-#ifndef _MSC_VER
+#if !CRYPTOPP_BOOL_X64 && !defined(_MSC_VER) && defined(__GNUC__)
 static jmp_buf s_jmpNoSSE2;
 static void SigIllHandlerSSE2(int)
 {