[libsupc++_related] Suppress warning in unwind-pe.h

Paolo Carlini pcarlini@unitus.it
Fri Oct 3 10:49:00 GMT 2003


Hi,

we are getting this warning:

In file included from 
../../../../gcc-head/gcc/libstdc++-v3/libsupc++/eh_personality.cc:38:
/home/paolo/Gcc/cvs-dirs/gcc-head/gcc/libstdc++-v3/../gcc/unwind-pe.h: 
In function `const unsigned
char* read_encoded_value_with_base(unsigned char, _Unwind_Ptr, const 
unsigned char*, _Unwind_Ptr*)'
:
/home/paolo/Gcc/cvs-dirs/gcc-head/gcc/libstdc++-v3/../gcc/unwind-pe.h:194: 
warning: cast from `cons
t unsigned char*' to `read_encoded_value_with_base(unsigned char, 
_Unwind_Ptr, const unsigned char*
, _Unwind_Ptr*)::unaligned*' discards qualifiers from pointer target type

which I fixed with the below, regtested on i686-pc-linux-gnu, C, C++.

Ok?

Paolo.

///////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_warning
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031003/9fefefc4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_warning
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031003/9fefefc4/attachment-0001.ksh>


More information about the Libstdc++ mailing list