1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[NFC] Fix "unused parameter" error revealed in the Linux self-build.

This commit is contained in:
Zahira Ammarguellat 2021-03-15 12:15:34 -04:00
parent 69f00a58ef
commit 75a089166d
3 changed files with 4 additions and 4 deletions

View File

@ -255,7 +255,7 @@ inline bool operator!=(T *A, const IntrusiveRefCntPtr<U> &B) {
}
template <class T>
bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
bool operator==(std::nullptr_t, const IntrusiveRefCntPtr<T> &B) {
return !B;
}

View File

@ -592,7 +592,7 @@ private:
}
template <class T1, class T2>
static bool compareThisIfSameType(const T1 &a, const T2 &b) {
static bool compareThisIfSameType(const T1 &, const T2 &) {
return false;
}

View File

@ -48,7 +48,7 @@ public:
explicit stream_operator_format_adapter(T &&Item)
: Item(std::forward<T>(Item)) {}
void format(llvm::raw_ostream &S, StringRef Options) override { S << Item; }
void format(llvm::raw_ostream &S, StringRef) override { S << Item; }
};
template <typename T> class missing_format_adapter;
@ -153,7 +153,7 @@ build_format_adapter(T &&Item) {
template <typename T>
std::enable_if_t<uses_missing_provider<T>::value, missing_format_adapter<T>>
build_format_adapter(T &&Item) {
build_format_adapter(T &&) {
return missing_format_adapter<T>();
}
}