Commit d754f1c6 authored by Matthias Vallentin's avatar Matthias Vallentin

Remove warnings

parent 5607b617
...@@ -167,6 +167,8 @@ protected: ...@@ -167,6 +167,8 @@ protected:
return new_off; // nothing to do return new_off; // nothing to do
if (get) { if (get) {
switch (dir) { switch (dir) {
default:
return pos_type(off_type(-1));
case std::ios_base::beg: case std::ios_base::beg:
new_off = 0; new_off = 0;
break; break;
...@@ -182,6 +184,8 @@ protected: ...@@ -182,6 +184,8 @@ protected:
} }
if (put) { if (put) {
switch (dir) { switch (dir) {
default:
return pos_type(off_type(-1));
case std::ios_base::beg: case std::ios_base::beg:
new_off = 0; new_off = 0;
break; break;
......
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