disable [-Wunused-result] warning GCC : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
This commit is contained in:
parent
7db3beda01
commit
3c76e8d7ef
1 changed files with 4 additions and 0 deletions
|
@ -83,7 +83,11 @@ public:
|
||||||
if (!size_) return nullptr;
|
if (!size_) return nullptr;
|
||||||
std::fseek(file_.get(), 0, SEEK_SET);
|
std::fseek(file_.get(), 0, SEEK_SET);
|
||||||
data_type buffer(new char[size_]);
|
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());
|
std::fread(buffer.get(), size_, 1, file_.get());
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue