diff options
author | Thomas Voß <thomas.voss.bochum@gmail.com> | 2015-11-25 14:23:13 +0100 |
---|---|---|
committer | Thomas Voß <thomas.voss.bochum@gmail.com> | 2015-11-25 14:23:13 +0100 |
commit | 3f786c717166df45409f631963a141f39a670af5 (patch) | |
tree | 8752099fccbe3dd60f4e0ca271af29658056b266 /platform/default/image.cpp | |
parent | 146533e377ad5ae205a52d37f98771da3f39a547 (diff) | |
download | qtlocation-mapboxgl-3f786c717166df45409f631963a141f39a670af5.tar.gz |
Fix GCC5 complaining about -Wunused-variable.
Diffstat (limited to 'platform/default/image.cpp')
-rw-r--r-- | platform/default/image.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/default/image.cpp b/platform/default/image.cpp index 4da607d97a..182b7d4c01 100644 --- a/platform/default/image.cpp +++ b/platform/default/image.cpp @@ -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(); @@ -22,7 +24,7 @@ const static bool png_version_check = []() { } return true; }(); - +#pragma GCC diagnostic pop namespace mbgl { namespace util { |