Skip to content

Commit e15fc14

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix unused-local-typedef issue (#13267)
Summary: LLVM has a warning `-Wunused-local-typedef` which we are enabling to remove unused code. This has the side-effect of making it easier to do refactors should as removing unnecessary includes. For questions/comments, contact r-barnes. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: swolchok Differential Revision: D79834770
1 parent ea4a7fa commit e15fc14

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)