0001-build-do-not-use-Werror.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. From 4c202c0fd7e5bd3264c720d715f05573047d9cf5 Mon Sep 17 00:00:00 2001
  2. From: Erico Nunes <nunes.erico@gmail.com>
  3. Date: Fri, 12 Aug 2016 23:11:56 +0200
  4. Subject: [PATCH] fwts: do not use -Werror
  5. Warnings come and go with various compiler versions, so using -Werror is
  6. prone to cause build failures with various compiler versions, especially
  7. newer versions that introduce new warnings.
  8. Remove use of -Werror.
  9. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
  10. [Fabrice: updated for 20.08.00]
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. ---
  13. configure.ac | 2 +-
  14. src/Makefile.am | 2 +-
  15. src/lib/src/Makefile.am | 2 +-
  16. src/utilities/Makefile.am | 2 +-
  17. 4 files changed, 4 insertions(+), 4 deletions(-)
  18. diff --git a/configure.ac b/configure.ac
  19. index 0109d644..3ca599e1 100644
  20. --- a/configure.ac
  21. +++ b/configure.ac
  22. @@ -1,5 +1,5 @@
  23. AC_INIT([fwts],[0.1],[fwts-devel@lists.ubuntu.com])
  24. - AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
  25. + AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
  26. m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
  27. AC_CANONICAL_HOST
  28. AC_CONFIG_MACRO_DIR([m4])
  29. diff --git a/src/Makefile.am b/src/Makefile.am
  30. index 52c637dd..d9d73f1c 100644
  31. --- a/src/Makefile.am
  32. +++ b/src/Makefile.am
  33. @@ -14,7 +14,7 @@ AM_CPPFLAGS = \
  34. `pkg-config --silence-errors --cflags json` \
  35. `pkg-config --silence-errors --cflags json-c` \
  36. -pthread `pkg-config --cflags glib-2.0 gio-2.0` \
  37. - -Wall -Werror -Wextra \
  38. + -Wall -Wextra \
  39. -Wno-address-of-packed-member \
  40. -Wfloat-equal -Wmissing-declarations \
  41. -Wno-long-long -Wredundant-decls -Wshadow \
  42. diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am
  43. index 54de7f44..e129ed16 100644
  44. --- a/src/lib/src/Makefile.am
  45. +++ b/src/lib/src/Makefile.am
  46. @@ -24,7 +24,7 @@ AM_CPPFLAGS = \
  47. `pkg-config --silence-errors --cflags json-c` \
  48. `pkg-config --cflags glib-2.0 gio-2.0` \
  49. -DDATAROOTDIR=\"$(datarootdir)\" \
  50. - -Wall -Werror -Wextra \
  51. + -Wall -Wextra \
  52. -Wno-address-of-packed-member
  53. pkglib_LTLIBRARIES = libfwts.la
  54. diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am
  55. index aa37de55..4d5297cc 100644
  56. --- a/src/utilities/Makefile.am
  57. +++ b/src/utilities/Makefile.am
  58. @@ -16,7 +16,7 @@
  59. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  60. #
  61. -AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
  62. +AM_CPPFLAGS = -Wall -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
  63. `pkg-config --silence-errors --cflags json` \
  64. `pkg-config --silence-errors --cflags json-c`
  65. --
  66. 2.17.1