Compare commits

...

1 Commits

Author SHA1 Message Date
Nolan O'Brien
33b71a71f1 Fix exhaustive switches
Summary: Changelog: [General][Fixed] - Add `default:` case to avoid warnings/errors for targets that compile with `-Wswitch-enum` and `-Wswitch-default` enabled

Reviewed By: aary

Differential Revision: D77051152
2025-07-02 12:00:00 -07:00

View File

@@ -72,9 +72,9 @@ inline bool operator==(const YGValue& lhs, const YGValue& rhs) {
case YGUnitPoint:
case YGUnitPercent:
return lhs.value == rhs.value;
default:
return false;
}
return false;
}
inline bool operator!=(const YGValue& lhs, const YGValue& rhs) {