Skip to content

Commit

Permalink
[BE] Remove gcc-5 workaround for unused args (pytorch#143685)
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet authored and pytorchmergebot committed Dec 21, 2024
1 parent ad7ab5e commit 553031f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions aten/src/ATen/core/dispatch/Dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,6 @@ template <class Return, class... Args>
C10_ALWAYS_INLINE_UNLESS_MOBILE Return Dispatcher::call(
const TypedOperatorHandle<Return(Args...)>& op,
Args... args) const {
detail::unused_arg_(args...); // workaround for a false-positive warning about
// unused parameters in gcc 5
auto dispatchKeySet =
op.operatorDef_->op.dispatchKeyExtractor()
.template getDispatchKeySetUnboxed<Args...>(args...);
Expand Down Expand Up @@ -817,8 +815,6 @@ inline Return Dispatcher::redispatch(
const TypedOperatorHandle<Return(Args...)>& op,
DispatchKeySet currentDispatchKeySet,
Args... args) const {
detail::unused_arg_(args...); // workaround for a false-positive warning about
// unused parameters in gcc 5
// do not use RecordFunction on redispatch
#ifndef NDEBUG
DispatchTraceNestingGuard debug_guard;
Expand Down

0 comments on commit 553031f

Please sign in to comment.