Skip to content

Commit 8a23409

Browse files
NSProgrammermeta-codesync[bot]
authored andcommitted
Fix -Wswitch-enum errors
Summary: X-link: pytorch/executorch#15543 Make improvements so that it is safe to use the `-Wswitch-enum` compiler error in a project consuming RN Reviewed By: abashyam Differential Revision: D86219351 fbshipit-source-id: 01183cef4a81b168eb8bfab1b8cdd02a752f8938
1 parent f46b0e2 commit 8a23409

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

impl/ocean/cv/FrameFilterSeparable.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3531,7 +3531,14 @@ bool FrameFilterSeparable::filter(const T* source, T* target, const unsigned int
35313531

35323532
if (width * channels >= 16u && width >= horizontalFilterSize + 1u)
35333533
{
3534+
#ifdef __clang__
3535+
#pragma clang diagnostic push
3536+
#pragma clang diagnostic ignored "-Wswitch-enum"
3537+
#endif
35343538
switch (Processor::bestInstructionGroup<false>(processorInstructions))
3539+
#ifdef __clang__
3540+
#pragma clang diagnostic pop
3541+
#endif
35353542
{
35363543
case PI_GROUP_AVX_2_SSE_4_1:
35373544
// temporary disabled: OCEAN_APPLY_IF_AVX((filter<T, TFilter, PI_GROUP_AVX_2_SSE_4_1>(source, target, width, height, channels, horizontalFilter, horizontalFilterSize, verticalFilter, verticalFilterSize, worker)));

0 commit comments

Comments
 (0)