Android: Silence some more warnings.
This commit is contained in:
parent
7f1185b941
commit
3168361e32
|
@ -14,7 +14,7 @@
|
||||||
#if !defined(BLACKBERRY) && !defined(IOS) && !defined(__SYMBIAN32__)
|
#if !defined(BLACKBERRY) && !defined(IOS) && !defined(__SYMBIAN32__)
|
||||||
const char procfile[] = "/proc/cpuinfo";
|
const char procfile[] = "/proc/cpuinfo";
|
||||||
|
|
||||||
std::string GetCPUString()
|
static std::string GetCPUString()
|
||||||
{
|
{
|
||||||
const std::string marker = "Hardware\t: ";
|
const std::string marker = "Hardware\t: ";
|
||||||
std::string cpu_string = "Unknown";
|
std::string cpu_string = "Unknown";
|
||||||
|
@ -38,7 +38,7 @@ std::string GetCPUString()
|
||||||
return cpu_string;
|
return cpu_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char GetCPUImplementer()
|
static unsigned char GetCPUImplementer()
|
||||||
{
|
{
|
||||||
const std::string marker = "CPU implementer\t: ";
|
const std::string marker = "CPU implementer\t: ";
|
||||||
unsigned char implementer = 0;
|
unsigned char implementer = 0;
|
||||||
|
@ -62,7 +62,7 @@ unsigned char GetCPUImplementer()
|
||||||
return implementer;
|
return implementer;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned short GetCPUPart()
|
static unsigned short GetCPUPart()
|
||||||
{
|
{
|
||||||
const std::string marker = "CPU part\t: ";
|
const std::string marker = "CPU part\t: ";
|
||||||
unsigned short part = 0;
|
unsigned short part = 0;
|
||||||
|
@ -86,7 +86,7 @@ unsigned short GetCPUPart()
|
||||||
return part;
|
return part;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CheckCPUFeature(const std::string& feature)
|
static bool CheckCPUFeature(const std::string& feature)
|
||||||
{
|
{
|
||||||
const std::string marker = "Features\t: ";
|
const std::string marker = "Features\t: ";
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ bool CheckCPUFeature(const std::string& feature)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int GetCoreCount()
|
static int GetCoreCount()
|
||||||
{
|
{
|
||||||
#ifdef __SYMBIAN32__
|
#ifdef __SYMBIAN32__
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#define ASHMEM_DEVICE "/dev/ashmem"
|
#define ASHMEM_DEVICE "/dev/ashmem"
|
||||||
|
|
||||||
int AshmemCreateFileMapping(const char *name, size_t size)
|
static int AshmemCreateFileMapping(const char *name, size_t size)
|
||||||
{
|
{
|
||||||
int fd, ret;
|
int fd, ret;
|
||||||
fd = open(ASHMEM_DEVICE, O_RDWR);
|
fd = open(ASHMEM_DEVICE, O_RDWR);
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace ButtonManager
|
||||||
TRIGGER_R
|
TRIGGER_R
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddBind(std::string dev, sBind *bind)
|
static void AddBind(std::string dev, sBind *bind)
|
||||||
{
|
{
|
||||||
auto it = m_controllers.find(dev);
|
auto it = m_controllers.find(dev);
|
||||||
if (it != m_controllers.end())
|
if (it != m_controllers.end())
|
||||||
|
|
Loading…
Reference in New Issue