mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980211 - Suppress clang and gcc warnings in third-party media code: speex, theora, and vpx. r=derf
This commit is contained in:
parent
539b553214
commit
a79c47b2be
@ -41,3 +41,7 @@ if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['OS_TARGET'] != 'Android':
|
||||
DEFINES['_USE_SSE2'] = True
|
||||
if CONFIG['GNU_CC']:
|
||||
SOURCES['resample.c'].flags += ['-msse2']
|
||||
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG['GNU_CC']:
|
||||
CFLAGS += ['-Wno-sign-compare']
|
||||
|
@ -78,5 +78,5 @@ FINAL_LIBRARY = 'gkmedias'
|
||||
DEFINES['THEORA_DISABLE_ENCODE'] = True
|
||||
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG['OS_TARGET'] == 'Darwin':
|
||||
if CONFIG['CLANG_CXX']:
|
||||
CFLAGS += ['-Wno-tautological-compare']
|
||||
|
@ -87,8 +87,6 @@ if CONFIG['OS_TARGET'] == 'Android':
|
||||
SOURCES += [
|
||||
'%s/sources/android/cpufeatures/cpu-features.c' % CONFIG['ANDROID_NDK'],
|
||||
]
|
||||
elif CONFIG['OS_TARGET'] == 'Darwin':
|
||||
CFLAGS += ['-Wno-sign-compare']
|
||||
|
||||
if not CONFIG['_MSC_VER']:
|
||||
for f in SOURCES:
|
||||
@ -99,3 +97,7 @@ if not CONFIG['_MSC_VER']:
|
||||
SOURCES[f].flags += ['-mssse3']
|
||||
if 'avx2' in f:
|
||||
SOURCES[f].flags += ['-mavx2']
|
||||
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG['GNU_CC']:
|
||||
CFLAGS += ['-Wno-sign-compare']
|
||||
|
Loading…
Reference in New Issue
Block a user