From d2dd29c35a15391bac29d8f76ea27490f0b50bef Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 8 Dec 2009 17:16:29 +0000 Subject: [PATCH] - Suppress compilation warning when geoip is not embedded in qBittorrent executable --- src/geoip.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/geoip.h b/src/geoip.h index ccd6533da..00e143ba7 100644 --- a/src/geoip.h +++ b/src/geoip.h @@ -42,12 +42,13 @@ using namespace libtorrent; class GeoIP { protected: - static QString geoipFolder(bool embedded=false) { #ifdef WITH_GEOIP_EMBEDDED + static QString geoipFolder(bool embedded=false) { if(embedded) return ":/geoip/"; return misc::qBittorrentPath()+"geoip"+QDir::separator(); #else + static QString geoipFolder(bool) { if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat")) return "/usr/local/share/GeoIP/"; if(QFile::exists("/var/lib/GeoIP/GeoIP.dat"))