diff options
| author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-14 11:27:56 +0000 |
|---|---|---|
| committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-14 11:27:56 +0000 |
| commit | a0ec12525df112a4c7ec3512705cdcb2d419eafc (patch) | |
| tree | 87922b204a2871e764e1ee97ce885edba8841ef2 /libstdc++-v3/src/c++98 | |
| parent | c598b7c67538ec802d075e838148c1b969fa6403 (diff) | |
| download | ppe42-gcc-a0ec12525df112a4c7ec3512705cdcb2d419eafc.tar.gz ppe42-gcc-a0ec12525df112a4c7ec3512705cdcb2d419eafc.zip | |
* src/c++98/compatibility.cc (_ZTIe): Use const_cast to avoid warning.
(_ZTIPe): Ditto.
(ZTIPKe): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src/c++98')
| -rw-r--r-- | libstdc++-v3/src/c++98/compatibility.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libstdc++-v3/src/c++98/compatibility.cc b/libstdc++-v3/src/c++98/compatibility.cc index d964e89db4c..febce3f4279 100644 --- a/libstdc++-v3/src/c++98/compatibility.cc +++ b/libstdc++-v3/src/c++98/compatibility.cc @@ -516,15 +516,18 @@ extern void *_ZTVN10__cxxabiv119__pointer_type_infoE[]; 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"; +// const_casts are used to avoid -Wcast-qual warnings extern __attribute__((used, weak)) const void * const _ZTIe[2] = { (void *) &_ZTVN10__cxxabiv123__fundamental_type_infoE[2], - (void *) _ZTSe }; + const_cast<char*>(_ZTSe) }; extern __attribute__((used, weak)) const void * const _ZTIPe[4] = { (void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], - (void *) _ZTSPe, (void *) 0L, (void *) _ZTIe }; + const_cast<char*>(_ZTSPe), (void *) 0L, + const_cast<void* const*>(_ZTIe) }; extern __attribute__((used, weak)) const void * const _ZTIPKe[4] = { (void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], - (void *) _ZTSPKe, (void *) 1L, (void *) _ZTIe }; + const_cast<char*>(_ZTSPKe), (void *) 1L, + const_cast<void* const*>(_ZTIe) }; #endif // _GLIBCXX_LONG_DOUBLE_COMPAT #ifdef _GLIBCXX_SYMVER_DARWIN |

