compatibility.cc (_ZTIe): Use reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.

* src/c++98/compatibility.cc (_ZTIe): Use
	reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
	(_ZTIPe): Ditto.
	(ZTIPKe): Ditto.

From-SVN: r201729
This commit is contained in:
Uros Bizjak 2013-08-14 16:59:46 +02:00 committed by Uros Bizjak
parent e839e2a931
commit b5ff10f3ad
2 changed files with 15 additions and 10 deletions

View File

@ -1,7 +1,7 @@
2013-08-14 Uros Bizjak <ubizjak@gmail.com> 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
* src/c++98/compatibility.cc (_ZTIe): Use (const cast *) * src/c++98/compatibility.cc (_ZTIe): Use
to avoid -Wcast-qual warnings. reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
(_ZTIPe): Ditto. (_ZTIPe): Ditto.
(ZTIPKe): Ditto. (ZTIPKe): Ditto.

View File

@ -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 _ZTSPe[3] = "Pe";
extern __attribute__((used, weak)) const char _ZTSPKe[4] = "PKe"; extern __attribute__((used, weak)) const char _ZTSPKe[4] = "PKe";
extern __attribute__((used, weak)) const void * const _ZTIe[2] extern __attribute__((used, weak)) const void * const _ZTIe[2]
= { (const void *) &_ZTVN10__cxxabiv123__fundamental_type_infoE[2], = { reinterpret_cast<const void *>
(const void *) _ZTSe }; (&_ZTVN10__cxxabiv123__fundamental_type_infoE[2]),
reinterpret_cast<const void *>(_ZTSe) };
extern __attribute__((used, weak)) const void * const _ZTIPe[4] extern __attribute__((used, weak)) const void * const _ZTIPe[4]
= { (const void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], = { reinterpret_cast<const void *>
(const void *) _ZTSPe, (const void *) 0L, (&_ZTVN10__cxxabiv119__pointer_type_infoE[2]),
(const void *) _ZTIe }; reinterpret_cast<const void *>(_ZTSPe),
reinterpret_cast<const void *>(0L),
reinterpret_cast<const void *>(_ZTIe) };
extern __attribute__((used, weak)) const void * const _ZTIPKe[4] extern __attribute__((used, weak)) const void * const _ZTIPKe[4]
= { (const void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], = { reinterpret_cast<const void *>
(const void *) _ZTSPKe, (const void *) 1L, (&_ZTVN10__cxxabiv119__pointer_type_infoE[2]),
(const void *) _ZTIe }; reinterpret_cast<const void *>(_ZTSPKe),
reinterpret_cast<const void *>(1L),
reinterpret_cast<const void *>(_ZTIe) };
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT #endif // _GLIBCXX_LONG_DOUBLE_COMPAT
#ifdef _GLIBCXX_SYMVER_DARWIN #ifdef _GLIBCXX_SYMVER_DARWIN