Project

General

Profile

Bug #869 » 0001-Bittorrent-use-GCC-pragma-s-only-when-buiding-with-i.patch

DJm00n, 12/03/2012 12:09 AM

View differences:

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 ())
(13-13/13)