diff mbox

function last_fde unwind-dw2-fde.h: warning: cast discards qualifiers from pointer target type

Message ID COL101-W2702A757D61E3C768702CE6D70@phx.gbl
State New
Headers show

Commit Message

Jay K June 9, 2010, 2:41 p.m. UTC
/Users/jay/obj/gcc/./gcc/xgcc -B/Users/jay/obj/gcc/./gcc/ -B/Users/jay/amd64-darwin/bin/ -B/Users/jay/amd64-darwin/lib/ -isystem /Users/jay/amd64-darwin/include -isystem /Users/jay/amd64-darwin/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc -I/Users/jay/src/gcc-4.5.0/libgcc -I/Users/jay/src/gcc-4.5.0/libgcc/. -I/Users/jay/src/gcc-4.5.0/libgcc/../gcc -I/Users/jay/src/gcc-4.5.0/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o unwind-dw2-fde-darwin.o -MT unwind-dw2-fde-darwin.o -MD -MP -MF unwind-dw2-fde-darwin.dep -fexceptions -c /Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde-darwin.c -fvisibility=hidden -DHIDE_EXPORTS

In file included from /Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde-darwin.c:36:0:
/Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde.h: In function 'last_fde':
/Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde.h:173:3: warning: cast discards qualifiers from pointer target type


jbook2:src jay$ diff -u orig/gcc-4.5.0/gcc/unwind-dw2-fde.h gcc-4.5.0/gcc/unwind-dw2-fde.h


untested because build is still running
looks same in trunk
or don't use -Wcast-qual..


 - Jay
diff mbox

Patch

--- orig/gcc-4.5.0/gcc/unwind-dw2-fde.h    2009-04-09 08:00:19.000000000 -0700
+++ gcc-4.5.0/gcc/unwind-dw2-fde.h    2010-06-09 07:22:29.000000000 -0700
@@ -170,7 +170,7 @@ 
 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 (const char *)f == obj->fde_end || f->length == 0;
 #else
   return f->length == 0;
 #endif