Skip to content

Fix unused-local-typedef issue in on_device_ai/Assistant/Jarvis/min_runtime/operators/check_op_args.h +1 #13267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/core/exec_aten/util/scalar_type_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -897,14 +897,14 @@ struct promote_types {
#define ET_INTERNAL_SWITCH_CASE(enum_type, CTYPE_ALIAS, ...) \
case enum_type: { \
ET_INTERNAL_CHECK_SELECTIVE_BUILD(enum_type); \
using CTYPE_ALIAS = \
using CTYPE_ALIAS [[maybe_unused]] = \
::executorch::runtime::ScalarTypeToCppType<enum_type>::type; \
return __VA_ARGS__(); \
}
#else
#define ET_INTERNAL_SWITCH_CASE(enum_type, CTYPE_ALIAS, ...) \
case enum_type: { \
using CTYPE_ALIAS = \
using CTYPE_ALIAS [[maybe_unused]] = \
::executorch::runtime::ScalarTypeToCppType<enum_type>::type; \
return __VA_ARGS__(); \
}
Expand Down
Loading