Commit aec9ba36 by Uros Bizjak Committed by Uros Bizjak

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

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

From-SVN: r201727
parent 346334d2
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 to avoid warning. * src/c++98/compatibility.cc (_ZTIe): Use (const cast *)
to avoid -Wcast-qual warnings.
(_ZTIPe): Ditto. (_ZTIPe): Ditto.
(ZTIPKe): Ditto. (ZTIPKe): Ditto.
......
...@@ -516,18 +516,17 @@ extern void *_ZTVN10__cxxabiv119__pointer_type_infoE[]; ...@@ -516,18 +516,17 @@ extern void *_ZTVN10__cxxabiv119__pointer_type_infoE[];
extern __attribute__((used, weak)) const char _ZTSe[2] = "e"; 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";
// const_casts are used to avoid -Wcast-qual warnings
extern __attribute__((used, weak)) const void * const _ZTIe[2] extern __attribute__((used, weak)) const void * const _ZTIe[2]
= { (void *) &_ZTVN10__cxxabiv123__fundamental_type_infoE[2], = { (const void *) &_ZTVN10__cxxabiv123__fundamental_type_infoE[2],
const_cast<char*>(_ZTSe) }; (const void *) _ZTSe };
extern __attribute__((used, weak)) const void * const _ZTIPe[4] extern __attribute__((used, weak)) const void * const _ZTIPe[4]
= { (void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], = { (const void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2],
const_cast<char*>(_ZTSPe), (void *) 0L, (const void *) _ZTSPe, (const void *) 0L,
const_cast<void* const*>(_ZTIe) }; (const void *) _ZTIe };
extern __attribute__((used, weak)) const void * const _ZTIPKe[4] extern __attribute__((used, weak)) const void * const _ZTIPKe[4]
= { (void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2], = { (const void *) &_ZTVN10__cxxabiv119__pointer_type_infoE[2],
const_cast<char*>(_ZTSPKe), (void *) 1L, (const void *) _ZTSPKe, (const void *) 1L,
const_cast<void* const*>(_ZTIe) }; (const void *) _ZTIe };
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT #endif // _GLIBCXX_LONG_DOUBLE_COMPAT
#ifdef _GLIBCXX_SYMVER_DARWIN #ifdef _GLIBCXX_SYMVER_DARWIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment