Revert back again fixing a typo! (thanks @springmeyer 2f55f0962e (commitcomment-20461372)
)
"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 2f55f0962e
.
This commit is contained in:
parent
28c51df986
commit
f76060274d
1 changed files with 4 additions and 0 deletions
|
@ -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 diagnostic ignored "-Wunused-result"
|
||||
std::fread(buffer.get(), size_, 1, file_.get());
|
||||
#pragma GCC diagnostic pop
|
||||
return buffer;
|
||||
}
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue