Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
eb1f08ce
Unverified
Commit
eb1f08ce
authored
Dec 07, 2020
by
yuriio
Committed by
GitHub
Dec 06, 2020
Browse files
Removed redundant calls that сause compilation nodiscard warnings. (#2251)
parent
f42a6d23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
dlib/bigint/bigint_kernel_1.h
dlib/bigint/bigint_kernel_1.h
+2
-3
dlib/bigint/bigint_kernel_2.h
dlib/bigint/bigint_kernel_2.h
+2
-3
dlib/bigint/bigint_kernel_c.h
dlib/bigint/bigint_kernel_c.h
+2
-3
No files found.
dlib/bigint/bigint_kernel_1.h
View file @
eb1f08ce
...
@@ -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
;
...
...
dlib/bigint/bigint_kernel_2.h
View file @
eb1f08ce
...
@@ -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
;
...
...
dlib/bigint/bigint_kernel_c.h
View file @
eb1f08ce
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment