0001-configure.ac-remove-Werror.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From 79d862ccaabc6620ce4b2783a44d6014ae837df9 Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Sun, 31 Dec 2017 00:01:37 +0200
  4. Subject: [PATCH] configure.ac: remove -Werror
  5. The unconditional _REENTRANT macro causes a warning when building with a
  6. no-threads toolchain. Remove -Werror to fix the build.
  7. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  8. ---
  9. Patch status: not upstreamable
  10. Issue reported upstream: https://github.com/json-c/json-c/issues/396
  11. ---
  12. configure.ac | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/configure.ac b/configure.ac
  15. index 024c5aa0d687..74caa4d99e15 100644
  16. --- a/configure.ac
  17. +++ b/configure.ac
  18. @@ -165,7 +165,7 @@ AS_IF([test "x$enable_Bsymbolic" = "xcheck"],
  19. AS_IF([test "x$enable_Bsymbolic" = "xyes"], [JSON_BSYMBOLIC_LDFLAGS=-Wl[,]-Bsymbolic-functions])
  20. AC_SUBST(JSON_BSYMBOLIC_LDFLAGS)
  21. -AX_APPEND_COMPILE_FLAGS([-Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations])
  22. +AX_APPEND_COMPILE_FLAGS([-Wall -Wcast-qual -Wno-error=deprecated-declarations])
  23. AX_APPEND_COMPILE_FLAGS([-Wextra -Wwrite-string -Wno-unused-parameter])
  24. AX_APPEND_COMPILE_FLAGS([-D_GNU_SOURCE -D_REENTRANT])
  25. --
  26. 2.15.1