Commit a2e4593e8259c58b60579c5579330f03587a9ce6

Edward Thomson 2015-02-03T18:41:40

hash_generic: __extension__ keyword for pedantry

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/hash/hash_generic.c b/src/hash/hash_generic.c
index 32fcd86..472a7a6 100644
--- a/src/hash/hash_generic.c
+++ b/src/hash/hash_generic.c
@@ -18,7 +18,7 @@
  * rotate with a loop.
  */
 
-#define SHA_ASM(op, x, n) ({ unsigned int __res; __asm__(op " %1,%0":"=r" (__res):"i" (n), "0" (x)); __res; })
+#define SHA_ASM(op, x, n) (__extension__ ({ unsigned int __res; __asm__(op " %1,%0":"=r" (__res):"i" (n), "0" (x)); __res; }))
 #define SHA_ROL(x,n)	SHA_ASM("rol", x, n)
 #define SHA_ROR(x,n)	SHA_ASM("ror", x, n)