mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
Partially fix that.
This commit is contained in:
parent
d43a270142
commit
103bca7284
3 changed files with 2 additions and 11 deletions
|
@ -11,7 +11,7 @@ GITINFO :=
|
|||
GITINFO != git describe --always
|
||||
.endif
|
||||
|
||||
CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing
|
||||
CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing -Wno-attributes
|
||||
|
||||
.if $(CC) == clang
|
||||
CFLAGS += -Weverything\
|
||||
|
|
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ UNAME ?= $(shell uname)
|
|||
CYGWIN = $(findstring CYGWIN, $(UNAME))
|
||||
MINGW = $(findstring MINGW32, $(UNAME))
|
||||
|
||||
CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing
|
||||
CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing -Wno-attributes
|
||||
#turn on tons of warnings if clang is present
|
||||
# but also turn off the STUPID ONES
|
||||
ifeq ($(CC), clang)
|
||||
|
|
9
hash.c
9
hash.c
|
@ -68,11 +68,6 @@
|
|||
* Murmur3 comes in to save the day.
|
||||
*/
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wattributes"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Some rotation tricks:
|
||||
* MSVC one shaves off six instructions, where GCC optimized one for
|
||||
|
@ -454,7 +449,3 @@ size_t hash(const char *key) {
|
|||
#undef HASH_NATIVE_BLOCK
|
||||
#undef HASH_NATIVE_BYTES
|
||||
#undef HASH_NATIVE_SAFEREAD
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue