mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839257: Mark Factory.cpp's HasCPUIDBit() as inline, to fix build warnings on some configurations about the function being defined but not used. r=Bas
This commit is contained in:
parent
ecb671c48d
commit
4e78a9ab0a
@ -66,7 +66,7 @@ enum CPUIDRegister { eax = 0, ebx = 1, ecx = 2, edx = 3 };
|
||||
// cpuid.h is available on gcc 4.3 and higher on i386 and x86_64
|
||||
#include <cpuid.h>
|
||||
|
||||
static bool
|
||||
static inline bool
|
||||
HasCPUIDBit(unsigned int level, CPUIDRegister reg, unsigned int bit)
|
||||
{
|
||||
unsigned int regs[4];
|
||||
@ -128,7 +128,7 @@ __cpuid(int CPUInfo[4], int InfoType)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CPU_DETECTION
|
||||
static bool
|
||||
static inline bool
|
||||
HasCPUIDBit(unsigned int level, CPUIDRegister reg, unsigned int bit)
|
||||
{
|
||||
// Check that the level in question is supported.
|
||||
|
Loading…
Reference in New Issue
Block a user