0001-Fix-building-on-Fedora-40-with-GCC-14.2.1.patch 940 B

12345678910111213141516171819202122232425262728
  1. From dc970a868a4c2d7e2051b533e0a3588ef1d35530 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= <git@myname.nl>
  3. Date: Mon, 26 Aug 2024 10:17:01 +0200
  4. Subject: [PATCH] Fix building on Fedora 40 with GCC 14.2.1
  5. Upstream-Status: Backport [https://github.com/perl5-dbi/dbi/commit/d6e2bf13ac6043f5b0a9a147805b4915bd70e631]
  6. Signed-off-by: Changqing Li <changqing.li@windriver.com>
  7. ---
  8. DBI.xs | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/DBI.xs b/DBI.xs
  11. index 747e341..9b1d136 100644
  12. --- a/DBI.xs
  13. +++ b/DBI.xs
  14. @@ -1106,7 +1106,7 @@ dbih_inner(pTHX_ SV *orv, const char *what)
  15. if (!SvMAGICAL(ohv)) {
  16. if (!what)
  17. return NULL;
  18. - if (!hv_fetch(ohv,"_NO_DESTRUCT_WARN",17,0))
  19. + if (!hv_fetch((HV*)ohv,"_NO_DESTRUCT_WARN",17,0))
  20. sv_dump(orv);
  21. croak("%s handle %s is not a DBI handle (has no magic)",
  22. what, neatsvpv(orv,0));
  23. --
  24. 2.46.0