diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-02-25 01:45:57 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-02-25 03:10:37 +0800 |
commit | 157cc4e0117756503c7c63df97cf31de7570b088 (patch) | |
tree | 69008d4028df06e8e2a8404b8589acc15e0ecb1f | |
parent | 029851fe7092e0d5bd757f51cca4ce6467795f5c (diff) | |
download | gcc-157cc4e0117756503c7c63df97cf31de7570b088.zip gcc-157cc4e0117756503c7c63df97cf31de7570b088.tar.gz gcc-157cc4e0117756503c7c63df97cf31de7570b088.tar.bz2 |
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.
-rw-r--r-- | libgcc/unwind-dw2-fde-dip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c index 3d6f39f..7f9be5e 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 |