X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fmd5.cc;h=ef8677666a22dcb3db6cbc7774fd928a6f112b63;hb=c3472bb8e7417a272f8c76c5a1316e3370adc941;hp=71069dbdd4f53b4339d1b9f83353b708d2613d93;hpb=3347080c209fd333955a73b2798be4f98b84d27f;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;