Skip to content

Commit 8f91076

Browse files
NSProgrammermeta-codesync[bot]
authored andcommitted
Address -Wswitch-default warnings (#54501)
Summary: Pull Request resolved: #54501 Improve compatibility with projects that have -Wswitch-default errors/warnings enabled by suppressing those errors/warnings in caffe2 headers. Changelog: [iOS] [Fixed] - Improve -Wswitch-default support Differential Revision: D86785448 fbshipit-source-id: f833214c6f48d6abdc8a94d31b36edecaac3aee2
1 parent fedd1cf commit 8f91076

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/react-native/ReactCommon/react/renderer/graphics/BlendMode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ inline std::string toString(const BlendMode &blendMode)
105105
return "color";
106106
case BlendMode::Luminosity:
107107
return "luminosity";
108+
default:
109+
abort();
108110
}
109111
}
110112
} // namespace facebook::react

packages/react-native/ReactCommon/react/renderer/graphics/Filter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ inline std::string toString(const FilterType &filterType)
7979
return "sepia";
8080
case FilterType::DropShadow:
8181
return "dropShadow";
82+
default:
83+
abort();
8284
}
8385
}
8486

0 commit comments

Comments
 (0)