summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-06 10:57:48 (UTC)
committer zecke <zecke>2004-09-06 10:57:48 (UTC)
commit8bf99aaa1b31e770b21b7bf50407a650a8f5d646 (patch) (unidiff)
tree4aadf040fb94085f54080c2b2b112ab5ff236b24
parent97a40bb7f35a8323dd99712bf014387add283177 (diff)
downloadopie-8bf99aaa1b31e770b21b7bf50407a650a8f5d646.zip
opie-8bf99aaa1b31e770b21b7bf50407a650a8f5d646.tar.gz
opie-8bf99aaa1b31e770b21b7bf50407a650a8f5d646.tar.bz2
GCC 2.95 compile fix for switch/case statement
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 127fee9..64fa199 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -323,18 +323,21 @@ void Zaurus::buzzer ( int sound )
323 || d->m_model == Model_Zaurus_SLB600 ){ 323 || d->m_model == Model_Zaurus_SLB600 ){
324 324
325 switch ( sound ){ 325 switch ( sound ){
326 case SHARP_BUZ_TOUCHSOUND: 326 case SHARP_BUZ_TOUCHSOUND: {
327 static Sound touch_sound("touchsound"); 327 static Sound touch_sound("touchsound");
328 snd = &touch_sound; 328 snd = &touch_sound;
329 }
329 break; 330 break;
330 case SHARP_BUZ_KEYSOUND: 331 case SHARP_BUZ_KEYSOUND: {
331 static Sound key_sound( "keysound" ); 332 static Sound key_sound( "keysound" );
332 snd = &key_sound; 333 snd = &key_sound;
334 }
333 break; 335 break;
334 case SHARP_BUZ_SCHEDULE_ALARM: 336 case SHARP_BUZ_SCHEDULE_ALARM:
335 default: 337 default: {
336 static Sound alarm_sound("alarm"); 338 static Sound alarm_sound("alarm");
337 snd = &alarm_sound; 339 snd = &alarm_sound;
340 }
338 break; 341 break;
339 } 342 }
340 } 343 }