shithub: mc

Download patch

ref: cefbc6118e75188bc34c13eb1411b9c673d7defb
parent: 112022b46043bd1e5f4aa458f94b3ce0a1706490
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 25 05:54:33 EDT 2017

Remove -Wextra

--- a/mk/c.mk
+++ b/mk/c.mk
@@ -9,7 +9,7 @@
 _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)
--- a/util/htab.c
+++ b/util/htab.c
@@ -300,12 +300,9 @@
 	}
 
 	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;
 	};