From 66831e6a380196e66918fe0277e0d8e4238c45ff Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 14 Jan 2006 22:11:32 +0000 Subject: [PATCH] Fix unused variable definition --- goldlib/gall/gutlvers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/goldlib/gall/gutlvers.cpp b/goldlib/gall/gutlvers.cpp index 5ad2b9f..d0def72 100644 --- a/goldlib/gall/gutlvers.cpp +++ b/goldlib/gall/gutlvers.cpp @@ -329,6 +329,8 @@ static void cpuname(int family, int model, const char *v_name, char *m_name) char *gcpuid(char *_cpuname) { +#if defined(__GNUC__) && defined(__i386__) || defined(_MSC_VER) + static struct scpuid_t{ dword cpu; /* x86, where x=cpu */ dword cpu_high; /* highest CPUID capability */ @@ -352,6 +354,7 @@ char *gcpuid(char *_cpuname) // unsigned cpu_id; /* stepping ID, 12 bits: 0x0FMS */ // unsigned features; /* CPU features info */ }scpuid; /* ISO C: static variabled is initialised with 0 */ +#endif #if defined(_MSC_VER) #undef and // and is defined as &&, this is conflicted with assembler instruction "and"