]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc: fix a warning calling find_fde_tail
authorXi Ruoyao <xry111@mengyan1223.wang>
Thu, 24 Feb 2022 17:45:57 +0000 (01:45 +0800)
committerXi Ruoyao <xry111@mengyan1223.wang>
Thu, 24 Feb 2022 19:10:37 +0000 (03:10 +0800)
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.

libgcc/unwind-dw2-fde-dip.c

index 3d6f39f5460ba64b332e728849475c1726f351c2..7f9be5e6b021a539278570ad202f1f9c45311ca1 100644 (file)
@@ -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