diff options
| author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-14 14:59:46 +0000 |
|---|---|---|
| committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-14 14:59:46 +0000 |
| commit | 1d0a4a140652d53ab789ec649962aa5580d756b9 (patch) | |
| tree | 2d9f8cb36ebe8a34110f62b474ce5392971c25c2 /libstdc++-v3/src | |
| parent | 91b338ea6ed80600b570e3392690e261e7f2ad2d (diff) | |
| download | ppe42-gcc-1d0a4a140652d53ab789ec649962aa5580d756b9.tar.gz ppe42-gcc-1d0a4a140652d53ab789ec649962aa5580d756b9.zip | |
* src/c++98/compatibility.cc (_ZTIe): Use
reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
(_ZTIPe): Ditto.
(ZTIPKe): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
| -rw-r--r-- | libstdc++-v3/src/c++98/compatibility.cc | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/libstdc++-v3/src/c++98/compatibility.cc b/libstdc++-v3/src/c++98/compatibility.cc index 0a4e45bbe1c..3f21c581ec1 100644 --- a/libstdc++-v3/src/c++98/compatibility.cc +++ b/libstdc++-v3/src/c++98/compatibility.cc @@ -517,16 +517,21 @@ extern __attribute__((used, weak)) const char _ZTSe[2] = "e"; extern __attribute__((used, weak)) const char _ZTSPe[3] = "Pe"; extern __attribute__((used, weak)) const char _ZTSPKe[4] = "PKe"; extern __attribute__((used, weak)) const void * const _ZTIe[2] - = { (const void *) &_ZTVN10__cxxabiv123__fundamental_type_infoE[2], - (const void *) _ZTSe }; + = { reinterpret_cast<const void *> + (&_ZTVN10__cxxabiv123__fundamental_type_infoE[2]), + reinterpret_cast<const void *>(_ZTSe) }; extern __attribute__((used, weak)) const void * const _ZTIPe[4] - = { (const void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], - (const void *) _ZTSPe, (const void *) 0L, - (const void *) _ZTIe }; + = { reinterpret_cast<const void *> + (&_ZTVN10__cxxabiv119__pointer_type_infoE[2]), + reinterpret_cast<const void *>(_ZTSPe), + reinterpret_cast<const void *>(0L), + reinterpret_cast<const void *>(_ZTIe) }; extern __attribute__((used, weak)) const void * const _ZTIPKe[4] - = { (const void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], - (const void *) _ZTSPKe, (const void *) 1L, - (const void *) _ZTIe }; + = { reinterpret_cast<const void *> + (&_ZTVN10__cxxabiv119__pointer_type_infoE[2]), + reinterpret_cast<const void *>(_ZTSPKe), + reinterpret_cast<const void *>(1L), + reinterpret_cast<const void *>(_ZTIe) }; #endif // _GLIBCXX_LONG_DOUBLE_COMPAT #ifdef _GLIBCXX_SYMVER_DARWIN |

