mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Issue #457 - Silence some GCC compiler warnings in FFmpeg code
This commit is contained in:
parent
2e975416bf
commit
5c61382dac
5 changed files with 20 additions and 5 deletions
|
|
@ -15,7 +15,10 @@ LOCAL_INCLUDES += [
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['GNU_CXX']:
|
if CONFIG['GNU_CXX']:
|
||||||
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
|
CXXFLAGS += [
|
||||||
|
'-Wno-attributes',
|
||||||
|
'-Wno-deprecated-declarations',
|
||||||
|
]
|
||||||
if CONFIG['CLANG_CXX']:
|
if CONFIG['CLANG_CXX']:
|
||||||
CXXFLAGS += [
|
CXXFLAGS += [
|
||||||
'-Wno-unknown-attributes',
|
'-Wno-unknown-attributes',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,10 @@ LOCAL_INCLUDES += [
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['GNU_CXX']:
|
if CONFIG['GNU_CXX']:
|
||||||
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
|
CXXFLAGS += [
|
||||||
|
'-Wno-attributes',
|
||||||
|
'-Wno-deprecated-declarations',
|
||||||
|
]
|
||||||
if CONFIG['CLANG_CXX']:
|
if CONFIG['CLANG_CXX']:
|
||||||
CXXFLAGS += [
|
CXXFLAGS += [
|
||||||
'-Wno-unknown-attributes',
|
'-Wno-unknown-attributes',
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,10 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['GNU_CXX']:
|
if CONFIG['GNU_CXX']:
|
||||||
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
|
CXXFLAGS += [
|
||||||
|
'-Wno-attributes',
|
||||||
|
'-Wno-deprecated-declarations',
|
||||||
|
]
|
||||||
if CONFIG['CLANG_CXX']:
|
if CONFIG['CLANG_CXX']:
|
||||||
CXXFLAGS += [
|
CXXFLAGS += [
|
||||||
'-Wno-unknown-attributes',
|
'-Wno-unknown-attributes',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,10 @@ LOCAL_INCLUDES += [
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['GNU_CXX']:
|
if CONFIG['GNU_CXX']:
|
||||||
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
|
CXXFLAGS += [
|
||||||
|
'-Wno-attributes',
|
||||||
|
'-Wno-deprecated-declarations',
|
||||||
|
]
|
||||||
if CONFIG['CLANG_CXX']:
|
if CONFIG['CLANG_CXX']:
|
||||||
CXXFLAGS += [
|
CXXFLAGS += [
|
||||||
'-Wno-unknown-attributes',
|
'-Wno-unknown-attributes',
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
# Due to duplicate file names, we compile libavutil/x86 in its own
|
# Due to duplicate file names, we compile libavcodec/x86 in its own
|
||||||
# moz.build file.
|
# moz.build file.
|
||||||
if CONFIG['FFVPX_ASFLAGS']:
|
if CONFIG['FFVPX_ASFLAGS']:
|
||||||
DIRS += ['x86']
|
DIRS += ['x86']
|
||||||
|
|
@ -68,6 +68,9 @@ SOURCES += [
|
||||||
SYMBOLS_FILE = 'avcodec.symbols'
|
SYMBOLS_FILE = 'avcodec.symbols'
|
||||||
NO_VISIBILITY_FLAGS = True
|
NO_VISIBILITY_FLAGS = True
|
||||||
|
|
||||||
|
if CONFIG['GNU_CXX']:
|
||||||
|
CXXFLAGS += ['-Wno-attributes']
|
||||||
|
|
||||||
# GCC 10 defaults -fno-common, we don't care to solve this "properly" yet
|
# GCC 10 defaults -fno-common, we don't care to solve this "properly" yet
|
||||||
# so use GCC < 10 behavior.
|
# so use GCC < 10 behavior.
|
||||||
if CONFIG['GNU_CC'] and CONFIG['CC_VERSION'] >= '10.0.0':
|
if CONFIG['GNU_CC'] and CONFIG['CC_VERSION'] >= '10.0.0':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue