From 33b71a71f10113aa4a8c1ccb23d2b90745d2ab2c Mon Sep 17 00:00:00 2001 From: Nolan O'Brien Date: Wed, 2 Jul 2025 12:00:00 -0700 Subject: [PATCH] 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 --- yoga/YGValue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yoga/YGValue.h b/yoga/YGValue.h index 63c82f3d..b7c4ba25 100644 --- a/yoga/YGValue.h +++ b/yoga/YGValue.h @@ -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) {