Skip to content

Commit 4a11423

Browse files
[BugFix] use maybe_unused to supress unused return result (backport #58419) (#58421)
Signed-off-by: Kevin Cai <[email protected]> Co-authored-by: Kevin Cai <[email protected]>
1 parent 7fbbc5d commit 4a11423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/util/simdjson_util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SimdjsonParser {
3636
SimdjsonParser() {
3737
// The `_parser` is only used for `unescape`ing, which touches nothing of the parser's internal structure,
3838
// so the capacity doesn't matter.
39-
(void)_parser.allocate(0);
39+
[[maybe_unused]] auto err = _parser.allocate(0);
4040
}
4141
~SimdjsonParser() = default;
4242

0 commit comments

Comments
 (0)