diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-22 16:22:31 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-22 16:22:31 +0000 |
commit | d4c9c88de78449982809b38fe7b960d2149e2bf5 (patch) | |
tree | 63a696016c8f0ea48c5f147c90a209e951b513fd /libgcc | |
parent | dfad1cc1924aeb7459413869ff3c72a2cc6d0c82 (diff) | |
download | gcc-d4c9c88de78449982809b38fe7b960d2149e2bf5.tar.gz |
* unwind-dw2-fde.h (last_fde): Use "(const fde *)" instead of
"(char *)" to avoid qualifier warning by 'xgcc' compiling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220004 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/unwind-dw2-fde.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index e7837d7e9a8..10e28494648 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com> + + * unwind-dw2-fde.h (last_fde): Use "(const fde *)" instead of + "(char *)" to avoid qualifier warning by 'xgcc' compiling. + 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com> * config/nios2/linux-unwind.h (nios2_fallback_frame_state): diff --git a/libgcc/unwind-dw2-fde.h b/libgcc/unwind-dw2-fde.h index da26ad6cbdc..9d01f572a2c 100644 --- a/libgcc/unwind-dw2-fde.h +++ b/libgcc/unwind-dw2-fde.h @@ -169,7 +169,7 @@ static inline int last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f) { #ifdef DWARF2_OBJECT_END_PTR_EXTENSION - return (char *)f == obj->fde_end || f->length == 0; + return f == (const fde *) obj->fde_end || f->length == 0; #else return f->length == 0; #endif |