From af296c6548ecc2ddde2859340a5fce58cc12b8f7 Mon Sep 17 00:00:00 2001 From: seife Date: Sat, 5 Nov 2011 12:09:56 +0000 Subject: [PATCH] lcdd: fix compiler warnings on Tripledragon git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1827 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/driver/lcdd.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/driver/lcdd.cpp b/src/driver/lcdd.cpp index 2692bdac4..4a8faa62e 100644 --- a/src/driver/lcdd.cpp +++ b/src/driver/lcdd.cpp @@ -323,7 +323,7 @@ void CLCD::setlcdparameter(int dimm, const int contrast, const int power, const #endif } #else -void CLCD::setlcdparameter(int dimm, const int contrast, const int power, const int inverse, const int bias) +void CLCD::setlcdparameter(int /*dimm*/, const int contrast, const int /*power*/, const int inverse, const int /*bias*/) { int fd = open("/dev/" DEVICE_NAME_LCD, O_RDWR); if (fd < 0) @@ -853,7 +853,6 @@ void CLCD::setMode(const MODES m, const char * const title) mode = m; menutitle = title; setlcdparameter(); - int x = 2; switch (m) { @@ -1016,9 +1015,9 @@ int CLCD::getInverse() return g_settings.lcd_setting[SNeutrinoSettings::LCD_INVERSE]; } +#ifdef HAVE_DBOX_HARDWARE void CLCD::setAutoDimm(int autodimm) { -#ifdef HAVE_DBOX_HARDWARE int fd; g_settings.lcd_setting[SNeutrinoSettings::LCD_AUTODIMM] = autodimm; @@ -1035,8 +1034,12 @@ void CLCD::setAutoDimm(int autodimm) close(fd); } -#endif } +#else +void CLCD::setAutoDimm(int /*autodimm*/) +{ +} +#endif int CLCD::getAutoDimm() {