diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-12-06 12:57:45 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-12-06 12:57:45 +0100 |
commit | 6a208294bef44f588e067383aa2e35af1aa23a16 (patch) | |
tree | 463f2aa875c26a6d0df507c2559a9bb821111082 /menuitems.c | |
parent | 1b973fd8ebb0a5dca7c82fac0651c33ecb7edd50 (diff) | |
download | vdr-6a208294bef44f588e067383aa2e35af1aa23a16.tar.gz vdr-6a208294bef44f588e067383aa2e35af1aa23a16.tar.bz2 |
Several code modifications to avoid compiler warnings
Diffstat (limited to 'menuitems.c')
-rw-r--r-- | menuitems.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/menuitems.c b/menuitems.c index df14b10d..05521ad9 100644 --- a/menuitems.c +++ b/menuitems.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menuitems.c 2.4 2009/05/03 13:37:55 kls Exp $ + * $Id: menuitems.c 2.5 2009/12/06 11:31:20 kls Exp $ */ #include "menuitems.h" @@ -257,7 +257,7 @@ eOSState cMenuEditPrcItem::ProcessKey(eKeys Key) return state; } newValue /= factor; - if (newValue != *value && (!fresh || min <= newValue) && newValue <= max) { + if (!DoubleEqual(newValue, *value) && (!fresh || min <= newValue) && newValue <= max) { *value = newValue; Set(); } @@ -666,6 +666,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key) return ProcessKey(kYellow); } break; + default: ; } } } @@ -675,6 +676,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key) case kfEnd: pos = lengthUtf8 - 1; break; case kfIns: return ProcessKey(kGreen); case kfDel: return ProcessKey(kYellow); + default: ; } } } @@ -975,6 +977,7 @@ eOSState cMenuEditTimeItem::ProcessKey(eKeys Key) pos++; } break; + default: ; } } else if (NORMALKEY(Key) == kLeft) { // TODO might want to increase the delta if repeated quickly? |