diff options
author | Moritz Bunkus <moritz@bunkus.org> | 2017-07-09 08:09:44 (GMT) |
---|---|---|
committer | Moritz Bunkus <moritz@bunkus.org> | 2017-07-09 08:15:10 (GMT) |
commit | e31971792961c977820c4365c5bb7edfba7b7f85 (patch) | |
tree | 7c7f8e6f8776f50b2ec147cebb919d3a99773002 /src/gendef.mk | |
parent | f0c1b340f070611018eb199ae55b481c428c814b (diff) | |
download | mxe-e31971792961c977820c4365c5bb7edfba7b7f85.zip mxe-e31971792961c977820c4365c5bb7edfba7b7f85.tar.gz mxe-e31971792961c977820c4365c5bb7edfba7b7f85.tar.bz2 |
gendef: build with -Wno-implicit-fallthrough
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.
Diffstat (limited to 'src/gendef.mk')
-rw-r--r-- | src/gendef.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gendef.mk b/src/gendef.mk index 46115a0..9b5cf6d 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)' \ |