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
fa818b9a
Unverified
Commit
fa818b9a
authored
Sep 18, 2020
by
Adrià Arrufat
Committed by
GitHub
Sep 17, 2020
Browse files
use DLIB_CASSERT to avoid unused variable warning in release compilation (#2182)
parent
d4fe74b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/vectorstream/vectorstream.h
dlib/vectorstream/vectorstream.h
+2
-2
No files found.
dlib/vectorstream/vectorstream.h
View file @
fa818b9a
...
...
@@ -52,7 +52,7 @@ namespace dlib
pos_type
seekoff
(
off_type
off
,
std
::
ios_base
::
seekdir
dir
,
std
::
ios_base
::
openmode
mode
=
std
::
ios_base
::
in
|
std
::
ios_base
::
out
)
{
DLIB_ASSERT
(
mode
==
std
::
ios_base
::
in
,
"vectorstream does not support std::ios_base::out"
);
DLIB_
C
ASSERT
(
mode
==
std
::
ios_base
::
in
,
"vectorstream does not support std::ios_base::out"
);
switch
(
dir
)
{
case
std
::
ios_base
::
beg
:
...
...
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