From 8c3a7c58113a27bc56d4b49c56538ecc27418cfd Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Tue, 17 Jan 2006 22:07:40 +0000 Subject: added curly brackets to fix "jump to case label crosses initialization of ‘int voltage’" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dvb/frontend.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/dvb/frontend.cpp') diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index b4a870fb..a4a94a21 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -520,10 +520,12 @@ void eDVBFrontend::tuneLoop() // called by m_tuneTimer ++m_sec_sequence.current(); break; case eSecCommand::SET_VOLTAGE: + { int voltage = m_sec_sequence.current()++->voltage; eDebug("[SEC] setVoltage %d", voltage); setVoltage(voltage); break; + } case eSecCommand::SET_TONE: eDebug("[SEC] setTone %d", m_sec_sequence.current()->tone); setTone(m_sec_sequence.current()++->tone); -- cgit v1.2.3