[ox] Fix GCC warnings

This commit is contained in:
2019-07-31 00:06:47 -05:00
parent df8e1d31d6
commit 6138d0a37e
3 changed files with 11 additions and 5 deletions

View File

@ -75,11 +75,11 @@ struct ValErr {
return value;
}
constexpr bool ok() const noexcept {
[[nodiscard]] constexpr bool ok() const noexcept {
return error == 0;
}
constexpr ox::Error get(T *val) noexcept {
[[nodiscard]] constexpr ox::Error get(T *val) noexcept {
*val = value;
return error;
}