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:
Daniel Holbert 2013-02-17 00:45:10 -08:00
parent ecb671c48d
commit 4e78a9ab0a

View File

@ -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.