Bug #869 » 0001-Bittorrent-use-GCC-pragma-s-only-when-buiding-with-i.patch
| src/plugins/bittorrent/core.cpp | ||
|---|---|---|
|
void Core::queryLibtorrentForWarnings ()
|
||
|
{
|
||
|
// I know auto_ptr is bad & deprecated & things, but libtorrent API strongly needs it :(
|
||
|
#if defined __GNUC__
|
||
|
#pragma GCC diagnostic push
|
||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||
|
#endif
|
||
|
std::auto_ptr<libtorrent::alert> a (Session_->pop_alert ());
|
||
|
#if defined __GNUC__
|
||
|
#pragma GCC diagnostic pop
|
||
|
#endif
|
||
|
SimpleDispatcher sd;
|
||
|
while (a.get ())
|
||
- « Previous
- 1
- …
- 11
- 12
- 13
- Next »