From 1591b48c71bf73afcc60b212530ceaea56360e11 Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Sun, 7 Feb 2010 22:05:17 +0000 Subject: [PATCH] fix some warnings (patch by Houdini) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@300 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d40e9bca0cd0f9e6bfb03d5bcf63b74909125098 Author: gixxpunk Date: 2010-02-07 (Sun, 07 Feb 2010) Origin message was: ------------------ - fix some warnings (patch by Houdini) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@300 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/infoviewer.cpp | 2 +- src/gui/widget/menue.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 0cf043a95..fb7daf62a 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1271,7 +1271,7 @@ void CInfoViewer::show_Data (bool calledFromEvent) char runningStart[10]; char runningRest[20]; char runningPercent = 0; - static char oldrunningPercent = 255; +// static char oldrunningPercent = 255; char nextStart[10]; char nextDuration[10]; diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 95800bd6d..013baba0f 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -109,7 +109,7 @@ void CMenuWidget::Init(const std::string & Icon, const int mwidth, const int /*m width = 0; /* is set in paint() */ if (mwidth > 100) /* warn about abuse until we found all offenders... */ - fprintf(stderr, "CMenuWidget::Init (%s) (%s) mwidth over 100%: %d\n", nameString.c_str(), Icon.c_str(), mwidth); + fprintf(stderr, "CMenuWidget::Init (%s) (%s) mwidth over 100%%: %d\n", nameString.c_str(), Icon.c_str(), mwidth); else needed_width = frameBuffer->getScreenWidth() * mwidth / 100; @@ -409,9 +409,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &) if ( msg <= CRCInput::RC_MaxRC ) { - // recalculate timeout für RC-Tasten - timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings -::TIMING_MENU]); + // recalculate timeout for RC-keys + timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]); } } }