diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-04 11:51:35 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-04 11:51:35 +0100 |
commit | 365dabd8e6fa86da2add0889e448749e334e9164 (patch) | |
tree | 7de9050a440c21d3133d0ac2ca6caea936639521 | |
parent | 585c250374ab2c769da6b6546030f623d695acc2 (diff) | |
download | json-c-365dabd8e6fa86da2add0889e448749e334e9164.tar.gz |
Disable -Werrorbaserock/json-c-0.12-20140410-plus-patch
Even after patching in the /* fall through */ comments GCC 7 still
fails with stuff like this:
linkhash.c:334:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 9 : c+=k8[8]; /* fall through */
~^~~~~~~
Life is too short to build with -Werror.
-rw-r--r-- | Makefile.am.inc | 2 | ||||
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | tests/Makefile.in | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am.inc b/Makefile.am.inc index fec591b..61db1d2 100644 --- a/Makefile.am.inc +++ b/Makefile.am.inc @@ -1,2 +1,2 @@ -AM_CFLAGS = -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT +AM_CFLAGS = -Wall -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT diff --git a/Makefile.in b/Makefile.in index 1cd2bef..3687c49 100644 --- a/Makefile.in +++ b/Makefile.in @@ -378,7 +378,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CFLAGS = -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT +AM_CFLAGS = -Wall -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj SUBDIRS = . tests lib_LTLIBRARIES = libjson-c.la diff --git a/tests/Makefile.in b/tests/Makefile.in index 6395937..8ce943b 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -544,7 +544,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CFLAGS = -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT +AM_CFLAGS = -Wall -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT LDADD = $(LIBJSON_LA) LIBJSON_LA = $(top_builddir)/libjson-c.la TESTS = test1.test test2.test test4.test testReplaceExisting.test \ |