X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fmd5.cc;h=ef8677666a22dcb3db6cbc7774fd928a6f112b63;hb=2eb14a59f3626073017de925929dcc7e3e9eb43d;hp=71069dbdd4f53b4339d1b9f83353b708d2613d93;hpb=97591a7118a4c0342eaa63575893ca231570f363;p=awesomized%2Flibmemcached diff --git a/libhashkit/md5.cc b/libhashkit/md5.cc index 71069dbd..ef867766 100644 --- a/libhashkit/md5.cc +++ b/libhashkit/md5.cc @@ -71,6 +71,14 @@ documentation and/or software. #include #include +#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; typedef const unsigned char *CONST_POINTER;