fix compiler warnings
authorghost <andreas.monzner@multimedia-labs.de>
Tue, 8 Jun 2010 11:36:59 +0000 (13:36 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Tue, 8 Jun 2010 11:36:59 +0000 (13:36 +0200)
lib/base/ebase.cpp
lib/base/estring.cpp
lib/gdi/region.cpp

index c84f28b8e0ea2b7f8021c32ea63cef85b11fe7ff..700cce368d2c5224cd4ae679e7d0632c7f5bc8e2 100644 (file)
@@ -165,7 +165,7 @@ void eMainloop::removeSocketNotifier(eSocketNotifier *sn)
                return;
        }
        for (i = notifiers.begin(); i != notifiers.end(); ++i)
-               eDebug("fd=%d, sn=%d", i->second->getFD(), (void*)i->second);
+               eDebug("fd=%d, sn=%p", i->second->getFD(), (void*)i->second);
        eFatal("removed socket notifier which is not present, fd=%d", fd);
 }
 
index e7dc2becff05959160807d8a5f4798be33ea5905..f2ac7325d5adf706e9d3a12c04a9626062624487 100644 (file)
@@ -424,7 +424,7 @@ std::string convertDVBUTF8(const unsigned char *data, int len, int table, int ts
                        break;
        }
 
-       bool useTwoCharMapping = !table || tsidonid && encodingHandler.getTransponderUseTwoCharMapping(tsidonid);
+       bool useTwoCharMapping = !table || (tsidonid && encodingHandler.getTransponderUseTwoCharMapping(tsidonid));
 
        if (useTwoCharMapping && table == 5) { // i hope this dont break other transponders which realy use ISO8859-5 and two char byte mapping...
 //             eDebug("Cyfra / Cyfrowy Polsat HACK... override given ISO8859-5 with ISO6397");
index 1208c97ec893d0dbc5be5311ff66f62c8f62b4dc..73d9ac2da9d2a4b510caeaaff46f5e458bbf92f9 100644 (file)
@@ -428,7 +428,7 @@ void gRegion::moveBy(ePoint offset)
 
 void gRegion::scale(int x_n, int x_d, int y_n, int y_d)
 {
-       int i;
+       unsigned int i;
        for (i=0; i<rects.size(); ++i)
                rects[i].scale(x_n, x_d, y_n, y_d);
 }