warning: cast discards qualifiers from pointer target type There are at lot of these building gcc. Including but not limited to:
../../gcc-4.5/gcc/gimple.h: In function gimple_op: ../../gcc-4.5/gcc/gimple.h:1635: warning: cast discards qualifiers from pointer target type ../../gcc-4.5/gcc/gimple.h: In function gimple_op_ptr: ../../gcc-4.5/gcc/gimple.h:1651: warning: cast discards qualifiers from pointer target type Yes, I realize it is dependent on host compiler (Apple gcc 4.0.1 in my case) and that I'm using -disable-bootstrap. I would suggest -disable-bootstrap should not pass -Wcast-qual, and that "regular" should not pass it in the first pass. Unless there is another way, like __extension__ or _Pragma or #pragma GCC can quash it on known places. -- Summary: warning: cast discards qualifiers from pointer target type -- -disable-bootstrap should not use -Wcast-qual Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jay dot krell at cornell dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44305