Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

gcc-5 #2582

Closed
wants to merge 1 commit into from
Closed

gcc-5 #2582

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ matrix:
- os: linux
include:
- os: linux
env: FLAVOR=linux CXX=g++-4.9 BUILDTYPE=Release
env: FLAVOR=linux CXX=g++-5 BUILDTYPE=Release
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'gdb', 'g++-4.9', 'gcc-4.9', 'libllvm3.4', 'xutils-dev', 'libxxf86vm-dev', 'x11proto-xf86vidmode-dev', 'mesa-utils' ]
packages: [ 'gdb', 'g++-5', 'gcc-5', 'libllvm3.4', 'xutils-dev', 'libxxf86vm-dev', 'x11proto-xf86vidmode-dev', 'mesa-utils' ]
- os: linux
env: FLAVOR=linux CXX=clang++-3.5 BUILDTYPE=Debug
addons:
Expand Down
3 changes: 1 addition & 2 deletions gyp/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_CPLUSPLUSFLAGS': [
'-std=c++1y',
'-std=c++14',
'-Werror',
'-Wall',
'-Wextra',
Expand All @@ -35,7 +35,6 @@
'-Wshadow',
'-Wno-variadic-macros',
'-Wno-error=unused-parameter',
'-Wno-c++1y-extensions',
'-frtti',
'-fexceptions',
'${CFLAGS}',
Expand Down
3 changes: 3 additions & 0 deletions platform/default/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include <mbgl/platform/default/image_reader.hpp>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
// Check png library version.
const static bool png_version_check = []() {
const png_uint_32 version = png_access_version_number();
Expand All @@ -22,6 +24,7 @@ const static bool png_version_check = []() {
}
return true;
}();
#pragma GCC diagnostic pop


namespace mbgl {
Expand Down
3 changes: 3 additions & 0 deletions platform/default/sqlite3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <cstring>
#include <cstdio>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
// Check sqlite3 library version.
const static bool sqliteVersionCheck = []() {
if (sqlite3_libversion_number() / 1000000 != SQLITE_VERSION_NUMBER / 1000000) {
Expand All @@ -17,6 +19,7 @@ const static bool sqliteVersionCheck = []() {

return true;
}();
#pragma GCC diagnostic pop

namespace mapbox {
namespace sqlite {
Expand Down
3 changes: 3 additions & 0 deletions src/mbgl/util/compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <stdexcept>


#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
// Check zlib library version.
const static bool zlibVersionCheck = []() {
const char *const version = zlibVersion();
Expand All @@ -19,6 +21,7 @@ const static bool zlibVersionCheck = []() {

return true;
}();
#pragma GCC diagnostic pop


namespace mbgl {
Expand Down
3 changes: 3 additions & 0 deletions src/mbgl/util/uv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <uv.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
// Check libuv library version.
const static bool uvVersionCheck = []() {
const unsigned int version = uv_version();
Expand All @@ -23,6 +25,7 @@ const static bool uvVersionCheck = []() {
}
return true;
}();
#pragma GCC diagnostic pop

#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10

Expand Down