From 2f55f0962ec965c54f7b8f068341e0e687fc9398 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 12 Jan 2017 11:39:57 +0100 Subject: [PATCH] It doesn't work with GCC reverting back "disable [-Wunused-result] warning GCC : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509" This reverts commit 3c76e8d7ef0bf54d68612e48588b9b377502559a. --- include/mapnik/util/file_io.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/mapnik/util/file_io.hpp b/include/mapnik/util/file_io.hpp index 41a189b02..5dfe782eb 100644 --- a/include/mapnik/util/file_io.hpp +++ b/include/mapnik/util/file_io.hpp @@ -83,11 +83,7 @@ public: if (!size_) return nullptr; std::fseek(file_.get(), 0, SEEK_SET); data_type buffer(new char[size_]); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunknown-pragmas" -#pragma GCC diagnostics ignored "-Wunused-result" std::fread(buffer.get(), size_, 1, file_.get()); -#pragma GCC diagnostic pop return buffer; } private: