Only add -Wno-null-conversion when building with clang

Fixes some GCC warning spam.
This commit is contained in:
trav90 2018-04-06 14:37:18 -05:00 committed by Roy Tam
commit 69e5a25a51

View file

@ -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