[ox] Fix GCC warnings
This commit is contained in:
4
deps/ox/src/ox/std/error.hpp
vendored
4
deps/ox/src/ox/std/error.hpp
vendored
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user