Unverified Commit fa818b9a authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

use DLIB_CASSERT to avoid unused variable warning in release compilation (#2182)

parent d4fe74b5
...@@ -52,7 +52,7 @@ namespace dlib ...@@ -52,7 +52,7 @@ namespace dlib
pos_type seekoff(off_type off, std::ios_base::seekdir dir, pos_type seekoff(off_type off, std::ios_base::seekdir dir,
std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out ) 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_CASSERT(mode == std::ios_base::in, "vectorstream does not support std::ios_base::out");
switch (dir) switch (dir)
{ {
case std::ios_base::beg: case std::ios_base::beg:
......
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