[PATCH] D98204: [NFC] Fix "unused parameter" error revealed in the Linux self-build.
Zahira Ammarguellat via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 10 11:41:14 PST 2021
zahiraam updated this revision to Diff 329721.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98204/new/
https://reviews.llvm.org/D98204
Files:
llvm/include/llvm/ADT/DenseMapInfo.h
llvm/include/llvm/ADT/Hashing.h
llvm/include/llvm/ADT/Optional.h
llvm/include/llvm/Support/MathExtras.h
Index: llvm/include/llvm/Support/MathExtras.h
===================================================================
--- llvm/include/llvm/Support/MathExtras.h
+++ llvm/include/llvm/Support/MathExtras.h
@@ -398,7 +398,7 @@
return X < (UINT64_C(1) << (N));
}
template <unsigned N>
-constexpr inline std::enable_if_t<N >= 64, bool> isUInt(uint64_t X) {
+constexpr inline std::enable_if_t<N >= 64, bool> isUInt(uint64_t) {
return true;
}
Index: llvm/include/llvm/ADT/Optional.h
===================================================================
--- llvm/include/llvm/ADT/Optional.h
+++ llvm/include/llvm/ADT/Optional.h
@@ -381,7 +381,7 @@
return X != None;
}
-template <typename T> constexpr bool operator<(const Optional<T> &X, NoneType) {
+template <typename T> constexpr bool operator<(const Optional<T> &, NoneType) {
return false;
}
Index: llvm/include/llvm/ADT/Hashing.h
===================================================================
--- llvm/include/llvm/ADT/Hashing.h
+++ llvm/include/llvm/ADT/Hashing.h
@@ -656,7 +656,7 @@
template <typename... Ts, std::size_t... Indices>
hash_code hash_value_tuple_helper(const std::tuple<Ts...> &arg,
- std::index_sequence<Indices...> indices) {
+ std::index_sequence<Indices...>) {
return hash_combine(std::get<Indices>(arg)...);
}
Index: llvm/include/llvm/ADT/DenseMapInfo.h
===================================================================
--- llvm/include/llvm/ADT/DenseMapInfo.h
+++ llvm/include/llvm/ADT/DenseMapInfo.h
@@ -258,7 +258,7 @@
}
template <unsigned I>
- static unsigned getHashValueImpl(const Tuple &values, std::true_type) {
+ static unsigned getHashValueImpl(const Tuple &, std::true_type) {
return 0;
}
@@ -276,7 +276,7 @@
}
template <unsigned I>
- static bool isEqualImpl(const Tuple &lhs, const Tuple &rhs, std::true_type) {
+ static bool isEqualImpl(const Tuple &, const Tuple &, std::true_type) {
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98204.329721.patch
Type: text/x-patch
Size: 2062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210310/e93fd009/attachment.bin>
More information about the llvm-commits
mailing list