Skip to content

Commit 37d0841

Browse files
authored
[Support] Fix unused parameter warning in reserveExtraSpace; NFC (#106327)
1 parent 114ff99 commit 37d0841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/raw_ostream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class raw_ostream {
157157
/// So that the stream could keep at least tell() + ExtraSize bytes
158158
/// without re-allocations. reserveExtraSpace() does not change
159159
/// the size/data of the stream.
160-
virtual void reserveExtraSpace(uint64_t ExtraSize) {}
160+
virtual void reserveExtraSpace(uint64_t ExtraSize) { (void)ExtraSize; }
161161

162162
/// Set the stream to be buffered, with an automatically determined buffer
163163
/// size.

0 commit comments

Comments
 (0)