Summary: fixing compiler errors when compiling with Wunused-parameter
Reviewed By: @yfeldblum
Differential Revision:
D2267014
return LIKELY(probe < capacity_) ? probe : hashVal % capacity_;
}
return LIKELY(probe < capacity_) ? probe : hashVal % capacity_;
}
- inline size_t probeNext(size_t idx, size_t numProbes) {
+ inline size_t probeNext(size_t idx, size_t /*numProbes*/) {
//idx += numProbes; // quadratic probing
idx += 1; // linear probing
// Avoid modulus because it's slow
//idx += numProbes; // quadratic probing
idx += 1; // linear probing
// Avoid modulus because it's slow
typename std::tuple_element<
sizeof...(Ts),
std::tuple<T, Ts...> >::type const&
typename std::tuple_element<
sizeof...(Ts),
std::tuple<T, Ts...> >::type const&
- getLastElement(const T& v, const Ts&... vs) {
+ getLastElement(const T&, const Ts&... vs) {
return getLastElement(vs...);
}
return getLastElement(vs...);
}
- basic_fbstring(size_type n, value_type c, const A& a = A()) {
+ basic_fbstring(size_type n, value_type c, const A& /*a*/ = A()) {
auto const data = store_.expand_noinit(n);
fbstring_detail::pod_fill(data, data + n, c);
store_.writeTerminator();
auto const data = store_.expand_noinit(n);
fbstring_detail::pod_fill(data, data + n, c);
store_.writeTerminator();
basic_fbstring(InIt begin, InIt end,
typename std::enable_if<
!std::is_same<typename std::remove_const<InIt>::type,
basic_fbstring(InIt begin, InIt end,
typename std::enable_if<
!std::is_same<typename std::remove_const<InIt>::type,
- value_type*>::value, const A>::type & a = A()) {
+ value_type*>::value, const A>::type & /*a*/ = A()) {
template <typename T>
struct is_negative_impl<T, false> {
template <typename T>
struct is_negative_impl<T, false> {
- constexpr static bool check(T x) { return false; }
+ constexpr static bool check(T) { return false; }
};
// folly::to integral specializations can end up generating code
};
// folly::to integral specializations can end up generating code
template <class Ptr>
class SimpleDeleter : public DeleterBase {
public:
template <class Ptr>
class SimpleDeleter : public DeleterBase {
public:
- virtual void dispose(void* ptr, TLPDestructionMode mode) const {
+ virtual void dispose(void* ptr, TLPDestructionMode /*mode*/) const {
delete static_cast<Ptr>(ptr);
}
};
delete static_cast<Ptr>(ptr);
}
};
};
template<>
struct dynamic::CompareOp<dynamic::ObjectImpl> {
};
template<>
struct dynamic::CompareOp<dynamic::ObjectImpl> {
- static bool comp(ObjectImpl const& a, ObjectImpl const& b) {
+ static bool comp(ObjectImpl const&, ObjectImpl const&) {
// This code never executes; it is just here for the compiler.
return false;
}
// This code never executes; it is just here for the compiler.
return false;
}
class ActualReturn =
decltype(std::declval<F>()(std::declval<ArgTypes>()...)),
bool good = std::is_same<ExpectedReturn, ActualReturn>::value>
class ActualReturn =
decltype(std::declval<F>()(std::declval<ArgTypes>()...)),
bool good = std::is_same<ExpectedReturn, ActualReturn>::value>
- static constexpr bool testArgs(int* p) {
+ static constexpr bool testArgs(int*) {
* See the passages on verify_callback in SSL_CTX_set_verify(3)
* for more details.
*/
* See the passages on verify_callback in SSL_CTX_set_verify(3)
* for more details.
*/
- virtual bool handshakeVer(AsyncSSLSocket* sock,
+ virtual bool handshakeVer(AsyncSSLSocket* /*sock*/,
- X509_STORE_CTX* ctx) noexcept {
+ X509_STORE_CTX* /*ctx*/) noexcept {
}
template<typename MessageT>
}
template<typename MessageT>
-void NotificationQueue<MessageT>::Consumer::handlerReady(uint16_t events)
+void NotificationQueue<MessageT>::Consumer::handlerReady(uint16_t /*events*/)
noexcept {
consumeMessages(false);
}
noexcept {
consumeMessages(false);
}