Fix compiler warning on non-x86 architectures

This commit is contained in:
Markus Gans 2018-11-25 16:27:13 +01:00
parent 541f127088
commit 7f5901d237
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,7 @@
2018-11-25 Markus Gans <guru.mail@muenster.de> 2018-11-25 Markus Gans <guru.mail@muenster.de>
* Version 0.5.0 * Version 0.5.0
* Namespace fix in FTermFreeBSD and FTermOpenBSD * Namespace fix in FTermFreeBSD and FTermOpenBSD
* Fix compiler warning on non-x86 architectures
2018-11-24 Markus Gans <guru.mail@muenster.de> 2018-11-24 Markus Gans <guru.mail@muenster.de>
* Improved Sun Microsystems workstation console quirks * Improved Sun Microsystems workstation console quirks

View File

@ -118,17 +118,20 @@ void FTermLinux::setUTF8 (bool on)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#if defined(__x86_64__) || defined(__i386) || defined(__arm__)
bool FTermLinux::setPalette (FColor index, int r, int g, int b) bool FTermLinux::setPalette (FColor index, int r, int g, int b)
{ {
if ( ! FTerm::isLinuxTerm() ) if ( ! FTerm::isLinuxTerm() )
return false; return false;
#if defined(__x86_64__) || defined(__i386) || defined(__arm__)
return setVGAPalette (index, r, g, b); return setVGAPalette (index, r, g, b);
#else
return false;
#endif
} }
#else
bool FTermLinux::setPalette (FColor, int, int, int)
{
return false;
}
#endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FTermLinux::isLinuxConsole() bool FTermLinux::isLinuxConsole()