0001-Drop-Werror-array-bounds.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From e93dbd66973040f1e0afcba0dc7c712c27d75d59 Mon Sep 17 00:00:00 2001
  2. From: Matthias Clasen <mclasen@redhat.com>
  3. Date: Mon, 1 May 2023 23:27:52 -0400
  4. Subject: [PATCH] Drop -Werror=array-bounds
  5. gcc has strange issues with this and produces false
  6. positives that recently started breaking the build of
  7. pango as a subproject in gtk.
  8. See e.g. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
  9. Upstream: https://gitlab.gnome.org/GNOME/pango/-/commit/e93dbd66973040f1e0afcba0dc7c712c27d75d59
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. ---
  12. meson.build | 2 --
  13. 1 file changed, 2 deletions(-)
  14. diff --git a/meson.build b/meson.build
  15. index 930f41082..2d30c0141 100644
  16. --- a/meson.build
  17. +++ b/meson.build
  18. @@ -89,7 +89,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
  19. '-Wuninitialized',
  20. '-Wunused',
  21. '-Werror=address',
  22. - '-Werror=array-bounds',
  23. '-Werror=empty-body',
  24. '-Werror=implicit',
  25. '-Werror=implicit-fallthrough',
  26. @@ -132,7 +131,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
  27. '-Werror=sequence-point',
  28. '-Werror=return-type',
  29. '-Werror=trigraphs',
  30. - '-Werror=array-bounds',
  31. '-Werror=write-strings',
  32. '-Werror=address',
  33. '-Werror=int-to-pointer-cast',
  34. --
  35. GitLab