mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 19:37:32 +09:00
Issue #2061 - Follow-up: Silence compiler warnings for libjxl (MSVC)
This commit is contained in:
parent
84dc161d55
commit
80c2062843
1 changed files with 14 additions and 0 deletions
|
|
@ -132,6 +132,20 @@ FINAL_LIBRARY = "gkmedias"
|
||||||
# Silence them in the meantime.
|
# Silence them in the meantime.
|
||||||
ALLOW_COMPILER_WARNINGS = False
|
ALLOW_COMPILER_WARNINGS = False
|
||||||
|
|
||||||
|
if CONFIG['_MSC_VER']:
|
||||||
|
CFLAGS += [
|
||||||
|
'-wd4646', # function declared with 'noreturn' has non-void return type
|
||||||
|
'-wd4334', # result of 32-bit shift implicitly converted to 64 bits
|
||||||
|
'-wd4305', # truncation from 'type' to 'type'
|
||||||
|
'-wd4146', # unary minus operator applied to unsigned type, result still unsigned
|
||||||
|
]
|
||||||
|
CXXFLAGS += [
|
||||||
|
'-wd4646', # function declared with 'noreturn' has non-void return type
|
||||||
|
'-wd4334', # result of 32-bit shift implicitly converted to 64 bits
|
||||||
|
'-wd4305', # truncation from 'type' to 'type'
|
||||||
|
'-wd4146', # unary minus operator applied to unsigned type, result still unsigned
|
||||||
|
]
|
||||||
|
|
||||||
# Clang 5.0 has a compiler bug that prevents build in c++17
|
# Clang 5.0 has a compiler bug that prevents build in c++17
|
||||||
# See https://gitlab.com/wg1/jpeg-xl/-/issues/227
|
# See https://gitlab.com/wg1/jpeg-xl/-/issues/227
|
||||||
# This should be okay since we are using the C API.
|
# This should be okay since we are using the C API.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue