summaryrefslogtreecommitdiff
path: root/menu.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 /menu.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 'menu.c')
-rw-r--r--menu.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/menu.c b/menu.c
index 19cfabb3..8b31de52 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 2.24 2010/06/06 09:56:16 kls Exp $
+ * $Id: menu.c 2.25 2010/12/12 13:36:20 kls Exp $
*/
#include "menu.h"
@@ -606,7 +606,7 @@ void cMenuText::Display(void)
eOSState cMenuText::ProcessKey(eKeys Key)
{
- switch (Key) {
+ switch (int(Key)) {
case kUp|k_Repeat:
case kUp:
case kDown|k_Repeat:
@@ -1253,7 +1253,7 @@ void cMenuEvent::Display(void)
eOSState cMenuEvent::ProcessKey(eKeys Key)
{
- switch (Key) {
+ switch (int(Key)) {
case kUp|k_Repeat:
case kUp:
case kDown|k_Repeat:
@@ -2116,7 +2116,7 @@ void cMenuRecording::Display(void)
eOSState cMenuRecording::ProcessKey(eKeys Key)
{
- switch (Key) {
+ switch (int(Key)) {
case kUp|k_Repeat:
case kUp:
case kDown|k_Repeat:
@@ -3614,7 +3614,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
cChannel *NewChannel = NULL;
if (Key != kNone)
lastTime.Set();
- switch (Key) {
+ switch (int(Key)) {
case k0:
if (number == 0) {
// keep the "Toggle channels" function working
@@ -3818,7 +3818,7 @@ void cDisplayVolume::Process(eKeys Key)
eOSState cDisplayVolume::ProcessKey(eKeys Key)
{
- switch (Key) {
+ switch (int(Key)) {
case kVolUp|k_Repeat:
case kVolUp:
case kVolDn|k_Repeat:
@@ -3914,7 +3914,7 @@ eOSState cDisplayTracks::ProcessKey(eKeys Key)
{
int oldTrack = track;
int oldAudioChannel = audioChannel;
- switch (Key) {
+ switch (int(Key)) {
case kUp|k_Repeat:
case kUp:
case kDown|k_Repeat:
@@ -4031,7 +4031,7 @@ void cDisplaySubtitleTracks::Process(eKeys Key)
eOSState cDisplaySubtitleTracks::ProcessKey(eKeys Key)
{
int oldTrack = track;
- switch (Key) {
+ switch (int(Key)) {
case kUp|k_Repeat:
case kUp:
case kDown|k_Repeat:
@@ -4754,7 +4754,7 @@ eOSState cReplayControl::ProcessKey(eKeys Key)
return osContinue;
}
bool DoShowMode = true;
- switch (Key) {
+ switch (int(Key)) {
// Positioning:
case kPlay:
case kUp: Play(); break;
@@ -4781,7 +4781,7 @@ eOSState cReplayControl::ProcessKey(eKeys Key)
return osEnd;
default: {
DoShowMode = false;
- switch (Key) {
+ switch (int(Key)) {
// Editing:
case kMarkToggle: MarkToggle(); break;
case kPrev|k_Repeat: