diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-02-03 18:41:40 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-02-04 15:26:09 -0500 |
commit | a2e4593e8259c58b60579c5579330f03587a9ce6 (patch) | |
tree | 804bb484d69174cdcfd685e463c460666df37548 | |
parent | 710f66af351abb43e43e27ac23cb488babbaa04e (diff) | |
download | libgit2-a2e4593e8259c58b60579c5579330f03587a9ce6.tar.gz |
hash_generic: __extension__ keyword for pedantry
-rw-r--r-- | src/hash/hash_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash/hash_generic.c b/src/hash/hash_generic.c index 32fcd869c..472a7a696 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) |