From 673be386d6ae670d3c62051b10e7f57719338595 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Thu, 28 Feb 2013 17:28:00 -0800 Subject: [PATCH] Fix OSX/clang compiler warning. --- libhashkit/md5.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libhashkit/md5.cc b/libhashkit/md5.cc index cf68e3ca..ef867766 100644 --- a/libhashkit/md5.cc +++ b/libhashkit/md5.cc @@ -71,7 +71,13 @@ documentation and/or software. #include #include -#pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" +#define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) + +#if GCC_VERSION > 40600 +# pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" +#endif /* POINTER defines a generic pointer type */ typedef unsigned char *POINTER; -- 2.30.2