Ignore some warnings on clang.

This commit is contained in:
Rapptz 2014-08-04 21:19:16 -04:00
parent 2ac3e27229
commit 6774249bb5
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ before_install:
- sudo add-apt-repository -y ppa:saiarcot895/chromium-beta - sudo add-apt-repository -y ppa:saiarcot895/chromium-beta
- sudo apt-get --yes update - sudo apt-get --yes update
- sudo apt-get --yes install g++-4.8 - sudo apt-get --yes install g++-4.8
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.8; fi
- sudo apt-get --yes install ninja-build - sudo apt-get --yes install ninja-build
- sudo apt-get --yes install liblua5.2-dev - sudo apt-get --yes install liblua5.2-dev

View File

@ -66,6 +66,9 @@ if args.debug:
else: else:
cxxflags.extend(['-DNDEBUG', '-O3']) cxxflags.extend(['-DNDEBUG', '-O3'])
if args.cxx == 'clang++':
cxxflags.extend(['-Wno-unused-value', '-Wno-constexpr-not-const'])
if args.lua_dir: if args.lua_dir:
include.extend([os.path.join(args.lua_dir, 'include')]) include.extend([os.path.join(args.lua_dir, 'include')])
ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')])) ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))