diff options
author | Dennis Schafroth <dennis@schafroth.dk> | 2015-01-12 21:07:20 +0100 |
---|---|---|
committer | Dennis Schafroth <dennis@schafroth.dk> | 2015-01-12 21:07:20 +0100 |
commit | fafbfb5217c9f397e7a6680634f30b0216fad760 (patch) | |
tree | 7e35d45bdf5221fa76f3849a207d7643acb841f9 | |
parent | 5cd59a51bb42b734dc37fea20d048121e85ea444 (diff) |
Ignore deprecated warning on DARWIN
-rw-r--r-- | libglusterfs/src/common-utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index b1afa082844..1ec3f0fdd96 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -68,7 +68,11 @@ md5_wrapper(const unsigned char *data, size_t len, char *md5) unsigned short i = 0; unsigned short lim = MD5_DIGEST_LENGTH*2+1; unsigned char scratch[MD5_DIGEST_LENGTH] = {0,}; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" MD5(data, len, scratch); +#pragma GCC diagnostic pop + for (; i < MD5_DIGEST_LENGTH; i++) snprintf(md5 + i * 2, lim-i*2, "%02x", scratch[i]); } |