summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-04-02 11:57:19 +0200
committerlouis <louis.braun@gmx.de>2015-04-02 11:57:19 +0200
commit6d22edc2d8accdfa1fabdd2722859453cc734990 (patch)
treecf15ea3cf8df2da35475671bd2252105acacf60a /libcore
parent70ce62e35312afb346db473a1c70178cbba68758 (diff)
downloadvdr-plugin-skindesigner-6d22edc2d8accdfa1fabdd2722859453cc734990.tar.gz
vdr-plugin-skindesigner-6d22edc2d8accdfa1fabdd2722859453cc734990.tar.bz2
fixed some compiler warnings
Diffstat (limited to 'libcore')
-rw-r--r--libcore/helpers.c2
-rw-r--r--libcore/imagecache.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/libcore/helpers.c b/libcore/helpers.c
index 3e08e11..5dc5156 100644
--- a/libcore/helpers.c
+++ b/libcore/helpers.c
@@ -156,7 +156,7 @@ vector<string>& splitstring::split(char delim, int rep) {
string work = data();
string buf = "";
int i = 0;
- while (i < work.length()) {
+ while (i < (int)work.length()) {
if (work[i] != delim)
buf += work[i];
else if (rep == 1) {
diff --git a/libcore/imagecache.c b/libcore/imagecache.c
index ad063f6..3d80f9b 100644
--- a/libcore/imagecache.c
+++ b/libcore/imagecache.c
@@ -91,7 +91,7 @@ cImage *cImageCache::GetLogo(string channelID, int width, int height) {
return NULL;
bool success = LoadLogo(channel);
if (success) {
- if (config.limitLogoCache && (channelLogoCache.size() >= config.numLogosMax)) {
+ if (config.limitLogoCache && ((int)channelLogoCache.size() >= config.numLogosMax)) {
//logo cache is full, don't cache anymore
if (tempStaticLogo) {
delete tempStaticLogo;
@@ -245,6 +245,8 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) {
return "standardicons/Miscellaneous";
case mcCommand:
return "standardicons/Commands";
+ default:
+ break;
}
//check for standard menu entries
for (int i=0; i<16; i++) {