Skip to content

Commit 6627cbc

Browse files
r-barnesagrima1304
authored andcommitted
Fix unused-local-typedef issue
Differential Revision: D79834770 Pull Request resolved: pytorch#13267
1 parent d286910 commit 6627cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/core/exec_aten/util/scalar_type_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,14 +897,14 @@ struct promote_types {
897897
#define ET_INTERNAL_SWITCH_CASE(enum_type, CTYPE_ALIAS, ...) \
898898
case enum_type: { \
899899
ET_INTERNAL_CHECK_SELECTIVE_BUILD(enum_type); \
900-
using CTYPE_ALIAS = \
900+
using CTYPE_ALIAS [[maybe_unused]] = \
901901
::executorch::runtime::ScalarTypeToCppType<enum_type>::type; \
902902
return __VA_ARGS__(); \
903903
}
904904
#else
905905
#define ET_INTERNAL_SWITCH_CASE(enum_type, CTYPE_ALIAS, ...) \
906906
case enum_type: { \
907-
using CTYPE_ALIAS = \
907+
using CTYPE_ALIAS [[maybe_unused]] = \
908908
::executorch::runtime::ScalarTypeToCppType<enum_type>::type; \
909909
return __VA_ARGS__(); \
910910
}

0 commit comments

Comments
 (0)