From 151729eb3e4e4cfbb69db1f027e74188cf55c328 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 21 Oct 2002 22:15:31 +0000 Subject: Fix the addPage bug... and avoid some compiler warnings. REMEMBER WARNINGS ARE BUGS --- (limited to 'noncore/apps/opie-console/iolayerbase.cpp') diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp index b0df02d..47f9e76 100644 --- a/noncore/apps/opie-console/iolayerbase.cpp +++ b/noncore/apps/opie-console/iolayerbase.cpp @@ -107,7 +107,7 @@ void IOLayerBase::setParity( Parity par ) { } } void IOLayerBase::setSpeed( Speed sp ) { - int index; + int index = -1; switch( sp ) { case Baud_115200: index = id_baud_115200; @@ -121,6 +121,7 @@ void IOLayerBase::setSpeed( Speed sp ) { case Baud_19200: index = id_baud_19200; break; + default: case Baud_9600: index = id_baud_9600; break; @@ -160,6 +161,7 @@ IOLayerBase::Speed IOLayerBase::speed()const{ case id_baud_19200: return Baud_19200; break; + default: case id_baud_9600: return Baud_9600; break; -- cgit v0.9.0.2