public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7375] libgcc: fix a warning calling find_fde_tail
@ 2022-02-24 19:11 Xi Ruoyao
0 siblings, 0 replies; only message in thread
From: Xi Ruoyao @ 2022-02-24 19:11 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:157cc4e0117756503c7c63df97cf31de7570b088
commit r12-7375-g157cc4e0117756503c7c63df97cf31de7570b088
Author: Xi Ruoyao <xry111@mengyan1223.wang>
Date: Fri Feb 25 01:45:57 2022 +0800
libgcc: fix a warning calling find_fde_tail
The third parameter of find_fde_tail is an _Unwind_Ptr (which is an
integer type instead of a pointer), but we are passing NULL to it. This
causes a -Wint-conversion warning.
libgcc/
* unwind-dw2-fde-dip.c (_Unwind_Find_FDE): Call find_fde_tail
with 0 instead of NULL.
Diff:
---
libgcc/unwind-dw2-fde-dip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c
index 3d6f39f5460..7f9be5e6b02 100644
--- a/libgcc/unwind-dw2-fde-dip.c
+++ b/libgcc/unwind-dw2-fde-dip.c
@@ -514,7 +514,7 @@ _Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
# if DLFO_STRUCT_HAS_EH_DBASE
(_Unwind_Ptr) dlfo.dlfo_eh_dbase,
# else
- NULL,
+ 0,
# endif
bases);
else
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-24 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 19:11 [gcc r12-7375] libgcc: fix a warning calling find_fde_tail Xi Ruoyao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).