From 6774249bb5be47196934ac74a8d669b5ad8dc2bf Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 4 Aug 2014 21:19:16 -0400 Subject: [PATCH] Ignore some warnings on clang. --- .travis.yml | 1 + bootstrap.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index e522e63f..53800df1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_install: - sudo add-apt-repository -y ppa:saiarcot895/chromium-beta - sudo apt-get --yes update - 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 liblua5.2-dev diff --git a/bootstrap.py b/bootstrap.py index c36b4b5f..43bba099 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -66,6 +66,9 @@ if args.debug: else: cxxflags.extend(['-DNDEBUG', '-O3']) +if args.cxx == 'clang++': + cxxflags.extend(['-Wno-unused-value', '-Wno-constexpr-not-const']) + if args.lua_dir: include.extend([os.path.join(args.lua_dir, 'include')]) ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))