diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2019-10-14 15:38:28 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2019-10-14 15:40:32 +0200 |
commit | b88ae6d2e1c9f22931f59ff1ec490befe201fb26 (patch) | |
tree | d1b92078516ca55b24c42c435db867d0a26a68a9 /dict.c | |
parent | 24e3973bc03c15d534b2eac6e70fc2b2bef2b6c0 (diff) | |
download | libxml2-b88ae6d2e1c9f22931f59ff1ec490befe201fb26.tar.gz |
Avoid ignored attribute warnings under GCC
GCC doesn't support the unsigned-integer-overflow sanitizer.
Diffstat (limited to 'dict.c')
-rw-r--r-- | dict.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -372,7 +372,9 @@ found_pool: * http://burtleburtle.net/bob/hash/doobs.html */ +#ifdef __clang__ ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") +#endif static uint32_t xmlDictComputeBigKey(const xmlChar* data, int namelen, int seed) { uint32_t hash; @@ -405,7 +407,9 @@ xmlDictComputeBigKey(const xmlChar* data, int namelen, int seed) { * * Neither of the two strings must be NULL. */ +#ifdef __clang__ ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") +#endif static unsigned long xmlDictComputeBigQKey(const xmlChar *prefix, int plen, const xmlChar *name, int len, int seed) |