summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-06-25 09:54:33 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-25 09:54:33 -0700
commitcefbc6118e75188bc34c13eb1411b9c673d7defb (patch)
treee481f8093ac7d54ab24adfe3613940a36cca2206
parent112022b46043bd1e5f4aa458f94b3ce0a1706490 (diff)
downloadmc-cefbc6118e75188bc34c13eb1411b9c673d7defb.tar.gz
Remove -Wextra
-rw-r--r--mk/c.mk2
-rw-r--r--util/htab.c9
2 files changed, 4 insertions, 7 deletions
diff --git a/mk/c.mk b/mk/c.mk
index 81ff1fa..25167bc 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -9,7 +9,7 @@ _LIBINCPATHS=$(addprefix -I, $(dir $(DEPS))) $(_PCHDRS)
_LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(DEPS)))) $(_PCLIBS)
# yeah, I should probably remove -Werror, but it's nice for developing alone.
-CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-char-subscripts -g -O0
+CFLAGS += -Wall -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-char-subscripts -g -O0
CFLAGS += -MMD -MP -MF .deps/$(subst /,-,$*).d
LIB ?= $(INSTLIB)
diff --git a/util/htab.c b/util/htab.c
index 60571d7..0fc0ed4 100644
--- a/util/htab.c
+++ b/util/htab.c
@@ -300,12 +300,9 @@ ulong murmurhash2 (void *ptr, size_t len)
}
switch (len & 0x3) {
- case 3:
- h ^= p[2] << 16;
- case 2:
- h ^= p[1] << 8;
- case 1:
- h ^= p[0] << 0;
+ case 3: h ^= p[2] << 16;
+ case 2: h ^= p[1] << 8;
+ case 1: h ^= p[0] << 0;
default:
break;
};