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
This commit is contained in:
seife
2011-11-05 12:09:56 +00:00
parent fa21d0d59f
commit af296c6548

View File

@@ -323,7 +323,7 @@ void CLCD::setlcdparameter(int dimm, const int contrast, const int power, const
#endif #endif
} }
#else #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); int fd = open("/dev/" DEVICE_NAME_LCD, O_RDWR);
if (fd < 0) if (fd < 0)
@@ -853,7 +853,6 @@ void CLCD::setMode(const MODES m, const char * const title)
mode = m; mode = m;
menutitle = title; menutitle = title;
setlcdparameter(); setlcdparameter();
int x = 2;
switch (m) switch (m)
{ {
@@ -1016,9 +1015,9 @@ int CLCD::getInverse()
return g_settings.lcd_setting[SNeutrinoSettings::LCD_INVERSE]; return g_settings.lcd_setting[SNeutrinoSettings::LCD_INVERSE];
} }
#ifdef HAVE_DBOX_HARDWARE
void CLCD::setAutoDimm(int autodimm) void CLCD::setAutoDimm(int autodimm)
{ {
#ifdef HAVE_DBOX_HARDWARE
int fd; int fd;
g_settings.lcd_setting[SNeutrinoSettings::LCD_AUTODIMM] = autodimm; g_settings.lcd_setting[SNeutrinoSettings::LCD_AUTODIMM] = autodimm;
@@ -1035,8 +1034,12 @@ void CLCD::setAutoDimm(int autodimm)
close(fd); close(fd);
} }
#endif
} }
#else
void CLCD::setAutoDimm(int /*autodimm*/)
{
}
#endif
int CLCD::getAutoDimm() int CLCD::getAutoDimm()
{ {