mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Only add -Wno-null-conversion when building with clang
Fixes some GCC warning spam.
This commit is contained in:
parent
c5757236c9
commit
69e5a25a51
1 changed files with 4 additions and 1 deletions
|
|
@ -117,10 +117,13 @@ DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True
|
|||
# Suppress warnings in third-party code.
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += [
|
||||
'-Wno-null-conversion',
|
||||
'-Wno-return-type',
|
||||
'-Wno-sign-compare',
|
||||
]
|
||||
if CONFIG['CLANG_CXX']:
|
||||
CXXFLAGS += [
|
||||
'-Wno-null-conversion',
|
||||
]
|
||||
elif CONFIG['_MSC_VER']:
|
||||
CXXFLAGS += [
|
||||
'-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue