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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. From feb05271b484b158c14611839f968109e9cf3082 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. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Warnings come and go with various compiler versions, so using -Werror is
  9. prone to cause build failures with various compiler versions, especially
  10. newer versions that introduce new warnings.
  11. Remove use of -Werror.
  12. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
  13. [Fabrice: updated for 20.08.00]
  14. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  15. [Vincent: rebased onto V21.05.00]
  16. Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
  17. ---
  18. configure.ac | 2 +-
  19. src/Makefile.am | 2 +-
  20. src/lib/src/Makefile.am | 2 +-
  21. src/utilities/Makefile.am | 2 +-
  22. 4 files changed, 4 insertions(+), 4 deletions(-)
  23. diff --git a/configure.ac b/configure.ac
  24. index ca2f54e2..ed584abf 100644
  25. --- a/configure.ac
  26. +++ b/configure.ac
  27. @@ -1,5 +1,5 @@
  28. AC_INIT([fwts],[0.1],[fwts-devel@lists.ubuntu.com])
  29. - AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
  30. + AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
  31. m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
  32. AC_CANONICAL_HOST
  33. AC_CONFIG_MACRO_DIR([m4])
  34. diff --git a/src/Makefile.am b/src/Makefile.am
  35. index 3bb35e5c..e9fe92fe 100644
  36. --- a/src/Makefile.am
  37. +++ b/src/Makefile.am
  38. @@ -13,7 +13,7 @@ AM_CPPFLAGS = \
  39. -I$(top_srcdir)/efi_runtime \
  40. -I$(top_srcdir)/smccc_test \
  41. -pthread \
  42. - -Wall -Werror -Wextra \
  43. + -Wall -Wextra \
  44. -Wno-address-of-packed-member \
  45. -Wfloat-equal -Wmissing-declarations \
  46. -Wno-long-long -Wredundant-decls -Wshadow \
  47. diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am
  48. index d5d53dd7..76c48d4d 100644
  49. --- a/src/lib/src/Makefile.am
  50. +++ b/src/lib/src/Makefile.am
  51. @@ -22,7 +22,7 @@ AM_CPPFLAGS = \
  52. -I$(top_srcdir)/src/acpica/source/include \
  53. -I$(top_srcdir)/src/acpica/source/compiler \
  54. -DDATAROOTDIR=\"$(datarootdir)\" \
  55. - -Wall -Werror -Wextra \
  56. + -Wall -Wextra \
  57. -Wno-address-of-packed-member
  58. pkglib_LTLIBRARIES = libfwts.la
  59. diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am
  60. index de38f070..785975ff 100644
  61. --- a/src/utilities/Makefile.am
  62. +++ b/src/utilities/Makefile.am
  63. @@ -16,7 +16,7 @@
  64. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. #
  66. -AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
  67. +AM_CPPFLAGS = -Wall -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
  68. -I$(srcdir)/../lib/include
  69. bin_PROGRAMS = kernelscan
  70. --
  71. 2.36.1