summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/libflac
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-12 16:57:23 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-12 16:57:23 +0000
commit6dba2e1ba248291f761e072f7176ef5b32ba5216 (patch)
tree0a40162d36bff0d4fa65ba50ee4ee7e4f400cc82 /src/lib/libflac
parent446ac03dd9cfbb52ba6adffba90032b9618329de (diff)
fixed clang -Wunused-const-variable warning in libflac (nw)
Diffstat (limited to 'src/lib/libflac')
-rw-r--r--src/lib/libflac/libFLAC/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libflac/libFLAC/cpu.c b/src/lib/libflac/libFLAC/cpu.c
index 60b73bff143..8e97d45e493 100644
--- a/src/lib/libflac/libFLAC/cpu.c
+++ b/src/lib/libflac/libFLAC/cpu.c
@@ -86,6 +86,7 @@ static void sigill_handler (int sig)
/* how to get sysctlbyname()? */
#endif
+#if defined(FLAC__CPU_IA32) && !defined(FLAC__NO_ASM) && defined (FLAC__HAS_NASM)
/* these are flags in EDX of CPUID AX=00000001 */
static const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000;
@@ -95,10 +96,13 @@ static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE2 = 0x04000000;
/* these are flags in ECX of CPUID AX=00000001 */
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE3 = 0x00000001;
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200;
+#ifdef FLAC__USE_3DNOW
/* these are flags in EDX of CPUID AX=80000001 */
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_3DNOW = 0x80000000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_EXT3DNOW = 0x40000000;
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_EXTMMX = 0x00400000;
+#endif
+#endif
/*