redirection: add a default to redirection_spec_t::oflags switch

Fixes a compiler warning/error.
This commit is contained in:
David Adam 2019-12-14 10:42:08 +08:00
parent 9be77d1f9c
commit 58535408b0

View file

@ -27,6 +27,7 @@ int redirection_spec_t::oflags() const {
case redirection_mode_t::input:
return O_RDONLY;
case redirection_mode_t::fd:
default:
DIE("Not a file redirection");
}
}