C10_UNUSED to [[maybe_unused]] (#6357) (#138364)

Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/6357

Pull Request resolved: https://github.com/pytorch/pytorch/pull/138364
Approved by: https://github.com/Skylion007, https://github.com/eqy
This commit is contained in:
Richard Barnes
2024-10-19 13:17:43 +00:00
committed by PyTorch MergeBot
parent 2f6a70bfea
commit fddabc6e0b
139 changed files with 834 additions and 690 deletions

View File

@ -33,9 +33,9 @@ inline constexpr bool should_include_kernel_dtype(
const char *kernel_tag_str,
at::ScalarType scalar_type
) {
C10_UNUSED c10::string_view kernel_tag_sv = c10::string_view(kernel_tag_str);
$body
return false;
[[maybe_unused]] c10::string_view kernel_tag_sv =
c10::string_view(kernel_tag_str);
$body return false;
}
}
"""