fixed clang -Wunused-const-variable warning in libflac (nw)

This commit is contained in:
Oliver Stöneberg 2014-03-12 16:57:23 +00:00
parent 446ac03dd9
commit 6dba2e1ba2
2 changed files with 4 additions and 5 deletions

View File

@ -355,11 +355,6 @@ ifdef MSVC_BUILD
else
FLACOPTS += -DVERSION=\"1.2.1\"
endif
ifneq (,$(findstring clang,$(CC)))
ifneq (,$(findstring emcc,$(CC)))
FLACOPTS += -Wno-unused-const-variable
endif
endif
LIBFLACOBJS = \
$(LIBOBJ)/libflac/bitmath.o \

View File

@ -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
/*