summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-12-12 13:42:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-12-12 13:42:00 +0100
commit7b77774a99887448a54ba3c49782b77fdf01cef0 (patch)
tree4dfb04f7d6f162962df5f2aaf01d573965e0dd53 /menuitems.c
parent1e166490c8f9d4b6feddf6a3adc39dc5287a1fca (diff)
downloadvdr-7b77774a99887448a54ba3c49782b77fdf01cef0.tar.gz
vdr-7b77774a99887448a54ba3c49782b77fdf01cef0.tar.bz2
Added typecasts to avoid gcc 4.5 warnings in switch statements on eKeys variables where additional 'k_...' flags are used
Diffstat (limited to 'menuitems.c')
-rw-r--r--menuitems.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menuitems.c b/menuitems.c
index c5eba6e9..3a5a086b 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.7 2010/06/06 10:37:08 kls Exp $
+ * $Id: menuitems.c 2.8 2010/12/12 13:41:09 kls Exp $
*/
#include "menuitems.h"
@@ -527,7 +527,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key)
Set();
return osContinue;
}
- switch (Key) {
+ switch (int(Key)) {
case kRed: // Switch between upper- and lowercase characters
if (InEditMode()) {
if (!insert || !newchar) {
@@ -733,7 +733,7 @@ eOSState cMenuEditChanItem::ProcessKey(eKeys Key)
{
int delta = 1;
- switch (Key) {
+ switch (int(Key)) {
case kLeft|k_Repeat:
case kLeft: delta = -1;
case kRight|k_Repeat: