From a8545541e55ddc75f8ad27aa1d06b22f30686d2d Mon Sep 17 00:00:00 2001 From: Dimitriy Ryazantcev Date: Mon, 3 Dec 2012 01:02:45 +0200 Subject: [PATCH 1/2] Bittorrent: use GCC pragma's only when buiding with it. --- src/plugins/bittorrent/core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/bittorrent/core.cpp b/src/plugins/bittorrent/core.cpp index e462641..7acd103 100644 --- a/src/plugins/bittorrent/core.cpp +++ b/src/plugins/bittorrent/core.cpp @@ -2388,10 +2388,14 @@ namespace BitTorrent 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 a (Session_->pop_alert ()); +#if defined __GNUC__ #pragma GCC diagnostic pop +#endif SimpleDispatcher sd; while (a.get ()) -- 1.7.11.msysgit.1