projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
c++: fix -Wclass-memaccess
[awesomized/libmemcached]
/
libhashkit
/
md5.cc
diff --git
a/libhashkit/md5.cc
b/libhashkit/md5.cc
index 71069dbdd4f53b4339d1b9f83353b708d2613d93..ef8677666a22dcb3db6cbc7774fd928a6f112b63 100644
(file)
--- a/
libhashkit/md5.cc
+++ b/
libhashkit/md5.cc
@@
-71,6
+71,14
@@
documentation and/or software.
#include <string.h>
#include <sys/types.h>
#include <string.h>
#include <sys/types.h>
+#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;
/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;
typedef const unsigned char *CONST_POINTER;