Mark value maybe_unused in /flow/Knobs/ParseKnobValue

This commit is contained in:
Trevor Clinkenbeard 2022-08-23 10:16:16 -07:00 committed by GitHub
parent f144c929d3
commit e83b21d21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ TEST_CASE("/flow/Knobs/ParseKnobValue") {
ASSERT_EQ(safe_stoi64("4"), (int64_t)4);
try {
int64_t value = safe_stoi64("4GiB");
[[maybe_unused]] int64_t value = safe_stoi64("4GiB");
UNREACHABLE();
} catch (Error& e) {
ASSERT_EQ(e.code(), error_code_invalid_option_value);