mirror of
https://github.com/holub/mame
synced 2025-05-10 16:21:42 +03:00
fixed clang -Wunused-const-variable warning in libflac (nw)
This commit is contained in:
parent
446ac03dd9
commit
6dba2e1ba2
@ -355,11 +355,6 @@ ifdef MSVC_BUILD
|
|||||||
else
|
else
|
||||||
FLACOPTS += -DVERSION=\"1.2.1\"
|
FLACOPTS += -DVERSION=\"1.2.1\"
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring clang,$(CC)))
|
|
||||||
ifneq (,$(findstring emcc,$(CC)))
|
|
||||||
FLACOPTS += -Wno-unused-const-variable
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
LIBFLACOBJS = \
|
LIBFLACOBJS = \
|
||||||
$(LIBOBJ)/libflac/bitmath.o \
|
$(LIBOBJ)/libflac/bitmath.o \
|
||||||
|
@ -86,6 +86,7 @@ static void sigill_handler (int sig)
|
|||||||
/* how to get sysctlbyname()? */
|
/* how to get sysctlbyname()? */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(FLAC__CPU_IA32) && !defined(FLAC__NO_ASM) && defined (FLAC__HAS_NASM)
|
||||||
/* these are flags in EDX of CPUID AX=00000001 */
|
/* 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_CMOV = 0x00008000;
|
||||||
static const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000;
|
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 */
|
/* 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_SSE3 = 0x00000001;
|
||||||
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200;
|
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200;
|
||||||
|
#ifdef FLAC__USE_3DNOW
|
||||||
/* these are flags in EDX of CPUID AX=80000001 */
|
/* 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_3DNOW = 0x80000000;
|
||||||
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_EXT3DNOW = 0x40000000;
|
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_EXT3DNOW = 0x40000000;
|
||||||
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_EXTMMX = 0x00400000;
|
static const unsigned FLAC__CPUINFO_IA32_CPUID_EXTENDED_AMD_EXTMMX = 0x00400000;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user