From 98353ac16bb90ee4b5df18945acf4fa7f05f9a85 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 08 Feb 2007 23:11:26 +0000 Subject: This commit provides fixes that quiet warnings associated to device information. It should cause no change in behavior. --- (limited to 'libopie2/opiecore/device/odevice_htc.cpp') diff --git a/libopie2/opiecore/device/odevice_htc.cpp b/libopie2/opiecore/device/odevice_htc.cpp index a6ade11..44b33c0 100644 --- a/libopie2/opiecore/device/odevice_htc.cpp +++ b/libopie2/opiecore/device/odevice_htc.cpp @@ -107,13 +107,13 @@ struct htc_button htc_buttons_universal [] = { { Qt::Key_F15, QT_TRANSLATE_NOOP("Button", "Hinge1"), "devicebuttons/z_hinge1", - "QPE/Rotation", "rotateDefault()",0}, + "QPE/Rotation", "rotateDefault()",0,0}, { Qt::Key_F16, QT_TRANSLATE_NOOP("Button", "Hinge2"), "devicebuttons/z_hinge2", - "QPE/Rotation", "rotateDefault()",0}, + "QPE/Rotation", "rotateDefault()",0,0}, { Qt::Key_F17, QT_TRANSLATE_NOOP("Button", "Hinge3"), "devicebuttons/z_hinge3", - "QPE/Rotation", "rotateDefault()",0}, + "QPE/Rotation", "rotateDefault()",0,0}, }; @@ -355,7 +355,7 @@ OLedState HTC::ledState( OLed which ) const return Led_Off; } -bool HTC::setLedState( OLed which, OLedState st ) +bool HTC::setLedState( OLed, OLedState ) { qDebug( "HTC::setLedState: ODevice handling not yet implemented" ); return false; @@ -431,6 +431,8 @@ Transformation HTC::rotation() const else if ( hs == CASE_UNKNOWN ) rot = Rot270; } break; + default: + break; } qDebug( "HTC::rotation() - returning '%d'", rot ); -- cgit v0.9.0.2