From e31971792961c977820c4365c5bb7edfba7b7f85 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 9 Jul 2017 10:09:44 +0200 Subject: [PATCH] gendef: build with -Wno-implicit-fallthrough MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 7 has -Wimplicit-fallthrough on by default. On systems where the build gcc is v7 or newer building gendef will therefore fail with the following error: src/gendef.c: In function ‘getMemonic’: src/gendef.c:1034:15: error: this statement may fall through [-Werror=implicit-fallthrough=] case c_4: sz++; Fixes #1786. --- src/gendef.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gendef.mk b/src/gendef.mk index 46115a00..9b5cf6d3 100644 --- a/src/gendef.mk +++ b/src/gendef.mk @@ -16,6 +16,7 @@ endef define $(PKG)_BUILD cd '$(1)/mingw-w64-tools/gendef' && ./configure \ + CFLAGS='-Wno-implicit-fallthrough' \ --host='$(BUILD)' \ --build='$(BUILD)' \ --prefix='$(PREFIX)/$(TARGET)' \