mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
Some fixes
This commit is contained in:
parent
641136fee3
commit
de22dec56b
3 changed files with 5 additions and 2 deletions
|
@ -21,6 +21,8 @@ GITINFO :=
|
|||
-Wno-unknown-warning-option\
|
||||
-Wno-cast-align\
|
||||
-Wno-assign-enum\
|
||||
-Wno-empty-body\
|
||||
-Wno-date-time\
|
||||
-pedantic-errors
|
||||
.else
|
||||
. if $(CC) != g++
|
||||
|
|
1
Makefile
1
Makefile
|
@ -18,6 +18,7 @@ ifeq ($(CC), clang)
|
|||
-Wno-cast-align \
|
||||
-Wno-assign-enum \
|
||||
-Wno-empty-body \
|
||||
-Wno-date-time \
|
||||
-pedantic-errors
|
||||
else
|
||||
ifneq ($(CC), g++)
|
||||
|
|
4
hash.c
4
hash.c
|
@ -314,12 +314,12 @@ static ASAN_DISABLE size_t hash_strlen(const char *key) {
|
|||
}
|
||||
|
||||
VALGRIND_MAKE_MEM_DEFINED(s, STRLEN_ALIGN);
|
||||
for (w = (const void *)s; !STRLEN_HASZERO(*w); w++) {
|
||||
for (w = (const size_t *)s; !STRLEN_HASZERO(*w); w++) {
|
||||
/* Make the next word legal to access */
|
||||
VALGRIND_MAKE_MEM_DEFINED(w + STRLEN_ALIGN, STRLEN_ALIGN);
|
||||
}
|
||||
|
||||
for (s = (const void *)w; *s; s++);
|
||||
for (s = (const char *)w; *s; s++);
|
||||
|
||||
/* It's not legal to access this area anymore */
|
||||
VALGRIND_MAKE_MEM_NOACCESS(s + 1, STRLEN_ALIGN);
|
||||
|
|
Loading…
Reference in a new issue