Skip to content

Commit 1fe4178

Browse files
committed
Fix compilation error
1 parent db49d99 commit 1fe4178

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

.travis.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,44 @@
1-
language: cpp
2-
sudo: true
1+
language: generic
2+
sudo: required
3+
dist: trusty
34
addons:
45
apt:
6+
sources:
7+
- ubuntu-toolchain-r-test
58
packages:
69
- build-essential
10+
- gcc-5
11+
- g++-5
712
- cmake
813
- libopenal-dev
14+
- libsdl2-dev
915
osx_image: xcode7.3
1016
matrix:
1117
include:
1218
- os: linux
13-
compiler: gcc
14-
env: CONFIGURATION="Debug" wxWidgets_ver=2.8
19+
env: CONFIGURATION="Debug" wxWidgets_ver=2.8 CC=gcc-5 CXX=g++-5
1520
- os: linux
16-
compiler: gcc
17-
env: CONFIGURATION="Debug" wxWidgets_ver=3.0
21+
env: CONFIGURATION="Debug" wxWidgets_ver=3.0 CC=gcc-5 CXX=g++-5
1822

1923
- os: linux
20-
compiler: clang
21-
env: CONFIGURATION="Debug" wxWidgets_ver=2.8
24+
env: CONFIGURATION="Debug" wxWidgets_ver=2.8 CC=clang CXX=clang++
2225
- os: linux
23-
compiler: clang
24-
env: CONFIGURATION="Debug" wxWidgets_ver=3.0
26+
env: CONFIGURATION="Debug" wxWidgets_ver=3.0 CC=clang CXX=clang++
2527

2628
- os: osx
27-
compiler: clang
2829
env: CONFIGURATION="Debug"
2930

3031
- os: linux
31-
compiler: gcc
32-
env: CONFIGURATION="Release" wxWidgets_ver=2.8
32+
env: CONFIGURATION="Release" wxWidgets_ver=2.8 CC=gcc-5 CXX=g++-5
3333
- os: linux
34-
compiler: gcc
35-
env: CONFIGURATION="Release" wxWidgets_ver=3.0
34+
env: CONFIGURATION="Release" wxWidgets_ver=3.0 CC=gcc-5 CXX=g++-5
3635

3736
- os: linux
38-
compiler: clang
39-
env: CONFIGURATION="Release" wxWidgets_ver=2.8
37+
env: CONFIGURATION="Release" wxWidgets_ver=2.8 CC=clang CXX=clang++
4038
- os: linux
41-
compiler: clang
42-
env: CONFIGURATION="Release" wxWidgets_ver=3.0
39+
env: CONFIGURATION="Release" wxWidgets_ver=3.0 CC=clang CXX=clang++
4340

4441
- os: osx
45-
compiler: clang
4642
env: CONFIGURATION="Release"
4743
before_install:
4844
- ./ci/travis/before_install.sh

ci/travis/before_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -e
44

55
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
6-
sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots
7-
sudo apt-get update -qq
6+
# Nothing to do here
7+
:
88
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
99
brew update
1010
fi

ci/travis/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CMAKE_BINS_TMP=/tmp/cmake.tar.gz
77

88
if [ "$TRAVIS_OS_NAME" = "linux" ]
99
then
10-
sudo apt-get install -y ninja-build libsdl2-dev libwxgtk$wxWidgets_ver-dev
10+
sudo apt-get install -y libwxgtk$wxWidgets_ver-dev
1111

1212
if [ ! -x $HOME/cmake/bin/cmake ]
1313
then

ci/travis/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
cd travis-build
66

77
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
8-
make -j4
8+
make -j$(nproc)
99
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
1010
set -o pipefail && cmake --build . --config "$CONFIGURATION" -- ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO | xcpretty
1111
fi

code/apis/FlagListManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ FlagListManager::ProcessingStatus FlagListManager::ParseJsonData(const std::stri
716716

717717
openAlInfo.defaultCaptureDevice.name = jsonToWxString(openal_obj.at("default_capture"));
718718

719-
openAlInfo.version = wxString::Format("%d.%d",
719+
openAlInfo.version = wxString::Format(wxT("%d.%d"),
720720
openal_obj.at("version_major").get<int>(),
721721
openal_obj.at("version_minor").get<int>());
722722
}

code/apis/FlagListManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class FlagListManager: public wxEvtHandler {
128128

129129
const std::vector<Resolution>& GetResolutions() const;
130130

131-
wxFileName GetConfigLocation(const wxString& def_path = "") const;
131+
wxFileName GetConfigLocation(const wxString& def_path = wxEmptyString) const;
132132

133133
const OpenAlInfo& GetOpenAlInfo() const;
134134

0 commit comments

Comments
 (0)