Skip to content

[Support] Fix unused parameter warning in reserveExtraSpace; NFC #106327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

goldsteinn
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Aug 28, 2024

@llvm/pr-subscribers-llvm-support

Author: None (goldsteinn)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/106327.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Support/raw_ostream.h (+1-1)
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.

@goldsteinn goldsteinn changed the title [Support] Fix unused variable warning in reserveExtraSpace; NFC [Support] Fix unused parameter warning in reserveExtraSpace; NFC Aug 28, 2024
@goldsteinn goldsteinn merged commit 37d0841 into llvm:main Aug 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants