[llvm] 37d0841 - [Support] Fix unused parameter warning in `reserveExtraSpace`; NFC (#106327)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 09:00:42 PDT 2024
Author: goldsteinn
Date: 2024-08-28T09:00:38-07:00
New Revision: 37d0841547e8f2bc06104541a97bbfd4282abc23
URL: https://github.com/llvm/llvm-project/commit/37d0841547e8f2bc06104541a97bbfd4282abc23
DIFF: https://github.com/llvm/llvm-project/commit/37d0841547e8f2bc06104541a97bbfd4282abc23.diff
LOG: [Support] Fix unused parameter warning in `reserveExtraSpace`; NFC (#106327)
Added:
Modified:
llvm/include/llvm/Support/raw_ostream.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/raw_ostream.h b/llvm/include/llvm/Support/raw_ostream.h
index df9ee2e5a78586..2570c826502e7c 100644
--- a/llvm/include/llvm/Support/raw_ostream.h
+++ b/llvm/include/llvm/Support/raw_ostream.h
@@ -157,7 +157,7 @@ class raw_ostream {
/// So that the stream could keep at least tell() + ExtraSize bytes
/// without re-allocations. reserveExtraSpace() does not change
/// the size/data of the stream.
- virtual void reserveExtraSpace(uint64_t ExtraSize) {}
+ virtual void reserveExtraSpace(uint64_t ExtraSize) { (void)ExtraSize; }
/// Set the stream to be buffered, with an automatically determined buffer
/// size.
More information about the llvm-commits
mailing list