Stop compiler complaining in pedantic mode: may be a better way to do this...
authorDr. Stephen Henson <steve@openssl.org>
Sat, 22 May 2010 00:20:42 +0000 (00:20 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 22 May 2010 00:20:42 +0000 (00:20 +0000)
crypto/engine/eng_aesni.c

index 70b2838b4ea13d81191e59c962c13e3b09aa5151..26c2e073ff06bde12a887727883ef5df6b9e6b47 100644 (file)
@@ -115,7 +115,7 @@ void ENGINE_load_aesni (void)
 typedef unsigned int u32;
 typedef unsigned char u8;
 
-#if defined(__GNUC__) && __GNUC__>=2
+#if defined(__GNUC__) && __GNUC__>=2 && !defined(PEDANTIC)
 #  define BSWAP4(x) ({ u32 ret=(x);                    \
                        asm volatile ("bswapl %0"       \
                        : "+r"(ret));   ret;            })