X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsha1.c;h=cdccab3bfa6e52e5c623e1dfa1ff8c04178dffc3;hb=b5d29991cc4722aec39c346c3f82291581e92aa0;hp=3b16622df8069821d985a9e455dc76783be33f47;hpb=bf9712678fc9ec85bf2ac54407e16d76aa22e7b6;p=openvswitch diff --git a/lib/sha1.c b/lib/sha1.c index 3b16622d..cdccab3b 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -33,6 +33,7 @@ #include "sha1.h" #include #include +#include "compiler.h" #include "util.h" /* a bit faster & bigger, if defined */ @@ -150,12 +151,12 @@ sha_transform(struct sha1_ctx *sha_info) /* 'count' is the number of bytes to do an endian flip. */ static void -maybe_byte_reverse(uint32_t *buffer, int count) +maybe_byte_reverse(uint32_t *buffer OVS_UNUSED, int count OVS_UNUSED) { +#if !WORDS_BIGENDIAN int i; uint8_t ct[4], *cp; -#if !WORDS_BIGENDIAN count /= sizeof(uint32_t); cp = (uint8_t *) buffer; for (i = 0; i < count; i++) {