summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.travis-build.sh2
-rwxr-xr-x.travis-deps.sh7
-rw-r--r--.travis.yml4
-rw-r--r--src/video_core/pica.h2
4 files changed, 10 insertions, 5 deletions
diff --git a/.travis-build.sh b/.travis-build.sh
index 3310bacc5..df6e236b6 100755
--- a/.travis-build.sh
+++ b/.travis-build.sh
@@ -12,7 +12,7 @@ fi
12# Only run clang-format on Linux because we don't have 4.0 on OS X images 12# Only run clang-format on Linux because we don't have 4.0 on OS X images
13if [ "$TRAVIS_OS_NAME" = "linux" ]; then 13if [ "$TRAVIS_OS_NAME" = "linux" ]; then
14 # Default clang-format points to default 3.5 version one 14 # Default clang-format points to default 3.5 version one
15 CLANG_FORMAT=clang-format-4.0 15 CLANG_FORMAT=clang-format-3.9
16 $CLANG_FORMAT --version 16 $CLANG_FORMAT --version
17 17
18 if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then 18 if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
diff --git a/.travis-deps.sh b/.travis-deps.sh
index 9fd21cc57..1404fe19f 100755
--- a/.travis-deps.sh
+++ b/.travis-deps.sh
@@ -27,6 +27,13 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
27 echo "Using cached SDL2" 27 echo "Using cached SDL2"
28 fi 28 fi
29 29
30 export DEBIAN_FRONTEND=noninteractive
31 # Amazing placebo security
32 curl http://apt.llvm.org/llvm-snapshot.gpg.key | sudo -E apt-key add -
33 sudo -E add-apt-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main"
34 sudo -E apt-get -yq update
35 sudo -E apt-get -yq install clang-format-3.9
36
30elif [ "$TRAVIS_OS_NAME" = "osx" ]; then 37elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
31 brew update 38 brew update
32 brew install qt5 sdl2 dylibbundler 39 brew install qt5 sdl2 dylibbundler
diff --git a/.travis.yml b/.travis.yml
index a9e7aadd2..cc34e039c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,7 @@ language: cpp
3matrix: 3matrix:
4 include: 4 include:
5 - os: linux 5 - os: linux
6 sudo: true 6 sudo: required
7 dist: trusty 7 dist: trusty
8 - os: osx 8 - os: osx
9 sudo: false 9 sudo: false
@@ -17,7 +17,6 @@ addons:
17 apt: 17 apt:
18 sources: 18 sources:
19 - ubuntu-toolchain-r-test 19 - ubuntu-toolchain-r-test
20 - llvm-toolchain-precise
21 packages: 20 packages:
22 - gcc-6 21 - gcc-6
23 - g++-6 22 - g++-6
@@ -25,7 +24,6 @@ addons:
25 - libqt5opengl5-dev 24 - libqt5opengl5-dev
26 - xorg-dev 25 - xorg-dev
27 - lib32stdc++6 # For CMake 26 - lib32stdc++6 # For CMake
28 - clang-format-4.0
29 27
30cache: 28cache:
31 directories: 29 directories:
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 99bd59a69..b2db609ec 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -40,7 +40,7 @@ namespace Pica {
40// field offset. Otherwise, the compiler will fail to compile this code. 40// field offset. Otherwise, the compiler will fail to compile this code.
41#define PICA_REG_INDEX_WORKAROUND(field_name, backup_workaround_index) \ 41#define PICA_REG_INDEX_WORKAROUND(field_name, backup_workaround_index) \
42 ((typename std::enable_if<backup_workaround_index == PICA_REG_INDEX(field_name), \ 42 ((typename std::enable_if<backup_workaround_index == PICA_REG_INDEX(field_name), \
43 size_t>::type) PICA_REG_INDEX(field_name)) 43 size_t>::type)PICA_REG_INDEX(field_name))
44#endif // _MSC_VER 44#endif // _MSC_VER
45 45
46struct Regs { 46struct Regs {