"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "6bd8175890bf766227d2ca99c34d0de135d66474"
Unverified Commit eb1f08ce authored by yuriio's avatar yuriio Committed by GitHub
Browse files

Removed redundant calls that сause compilation nodiscard warnings. (#2251)

parent f42a6d23
...@@ -509,7 +509,6 @@ namespace dlib ...@@ -509,7 +509,6 @@ namespace dlib
) )
{ {
std::ios::fmtflags oldflags = out.flags(); std::ios::fmtflags oldflags = out.flags();
out.flags();
out << item << ' '; out << item << ' ';
out.flags(oldflags); out.flags(oldflags);
if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c"); if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c");
...@@ -521,8 +520,8 @@ namespace dlib ...@@ -521,8 +520,8 @@ namespace dlib
) )
{ {
std::ios::fmtflags oldflags = in.flags(); std::ios::fmtflags oldflags = in.flags();
in.flags(); in >> item;
in >> item; in.flags(oldflags); in.flags(oldflags);
if (in.get() != ' ') if (in.get() != ' ')
{ {
item = 0; item = 0;
......
...@@ -534,7 +534,6 @@ namespace dlib ...@@ -534,7 +534,6 @@ namespace dlib
) )
{ {
std::ios::fmtflags oldflags = out.flags(); std::ios::fmtflags oldflags = out.flags();
out.flags();
out << item << ' '; out << item << ' ';
out.flags(oldflags); out.flags(oldflags);
if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c"); if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c");
...@@ -546,8 +545,8 @@ namespace dlib ...@@ -546,8 +545,8 @@ namespace dlib
) )
{ {
std::ios::fmtflags oldflags = in.flags(); std::ios::fmtflags oldflags = in.flags();
in.flags(); in >> item;
in >> item; in.flags(oldflags); in.flags(oldflags);
if (in.get() != ' ') if (in.get() != ' ')
{ {
item = 0; item = 0;
......
...@@ -253,7 +253,6 @@ namespace dlib ...@@ -253,7 +253,6 @@ namespace dlib
) )
{ {
std::ios::fmtflags oldflags = out.flags(); std::ios::fmtflags oldflags = out.flags();
out.flags();
out << item << ' '; out << item << ' ';
out.flags(oldflags); out.flags(oldflags);
if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c"); if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c");
...@@ -268,8 +267,8 @@ namespace dlib ...@@ -268,8 +267,8 @@ namespace dlib
) )
{ {
std::ios::fmtflags oldflags = in.flags(); std::ios::fmtflags oldflags = in.flags();
in.flags(); in >> item;
in >> item; in.flags(oldflags); in.flags(oldflags);
if (in.get() != ' ') if (in.get() != ' ')
{ {
item = 0; item = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment