Index: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h =================================================================== --- llvm/include/llvm/ADT/IntrusiveRefCntPtr.h +++ llvm/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -255,7 +255,7 @@ } template -bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr &B) { +bool operator==(std::nullptr_t, const IntrusiveRefCntPtr &B) { return !B; } Index: llvm/include/llvm/Support/Error.h =================================================================== --- llvm/include/llvm/Support/Error.h +++ llvm/include/llvm/Support/Error.h @@ -592,7 +592,7 @@ } template - static bool compareThisIfSameType(const T1 &a, const T2 &b) { + static bool compareThisIfSameType(const T1 &, const T2 &) { return false; } Index: llvm/include/llvm/Support/FormatVariadicDetails.h =================================================================== --- llvm/include/llvm/Support/FormatVariadicDetails.h +++ llvm/include/llvm/Support/FormatVariadicDetails.h @@ -48,7 +48,7 @@ explicit stream_operator_format_adapter(T &&Item) : Item(std::forward(Item)) {} - void format(llvm::raw_ostream &S, StringRef Options) override { S << Item; } + void format(llvm::raw_ostream &S, StringRef) override { S << Item; } }; template class missing_format_adapter; @@ -153,7 +153,7 @@ template std::enable_if_t::value, missing_format_adapter> -build_format_adapter(T &&Item) { +build_format_adapter(T &&) { return missing_format_adapter(); } }