This commit is contained in:
artemp 2017-01-12 11:12:58 +01:00
parent 7db3beda01
commit 3c76e8d7ef

View file

@ -83,7 +83,11 @@ 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: