From 00b76d42e0ca9b2cdfda0776e8ef74a5b1ad316f Mon Sep 17 00:00:00 2001 From: Austin Schuh Date: Sat, 26 Nov 2016 16:28:50 -0800 Subject: [PATCH] Fixed unused variable warning from gcc. (#159) This makes it so that ntcore builds with -Wextra -Werror --- src/llvm/raw_ostream.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/llvm/raw_ostream.cpp b/src/llvm/raw_ostream.cpp index f1b501ff49..8ddbcc68b0 100644 --- a/src/llvm/raw_ostream.cpp +++ b/src/llvm/raw_ostream.cpp @@ -845,12 +845,11 @@ raw_null_ostream::~raw_null_ostream() { #endif } -void raw_null_ostream::write_impl(const char *Ptr, size_t Size) { -} +void raw_null_ostream::write_impl(const char * /*Ptr*/, size_t /*Size*/) {} uint64_t raw_null_ostream::current_pos() const { return 0; } -void raw_null_ostream::pwrite_impl(const char *Ptr, size_t Size, - uint64_t Offset) {} +void raw_null_ostream::pwrite_impl(const char * /*Ptr*/, size_t /*Size*/, + uint64_t /*Offset*/) {}