Partially fix that.

This commit is contained in:
Dale Weiler 2013-12-14 14:57:10 -05:00
parent d43a270142
commit 103bca7284
3 changed files with 2 additions and 11 deletions

View file

@ -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\

View file

@ -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
View file

@ -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