fix an instance of bugprone-unused-return-value
This new clang-tidy check fires when the result of a function like `unique_ptr.release()` is unused. Sometimes this is intentional, other times, it's not (e.g., the dev intended to `.reset()`). Bug: 1134714 Change-Id: Ibb59ab44faba246b1d80f2abc0897238bf0c3e71 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2457670Reviewed-by:Alice Boxhall <aboxhall@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> Cr-Commit-Position: refs/heads/master@{#825638}
Showing
Please register or sign in to comment