Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions yoga/style/StyleLength.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@ class StyleLength {
}

constexpr FloatOptional resolve(float referenceLength) {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch-enum"
#endif
switch (unit_) {
#ifdef __clang__
#pragma clang diagnostic pop
#endif
case Unit::Point:
return value_;
case Unit::Percent:
Expand Down
7 changes: 7 additions & 0 deletions yoga/style/StyleSizeLength.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ class StyleSizeLength {
}

constexpr FloatOptional resolve(float referenceLength) {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch-enum"
#endif
switch (unit_) {
#ifdef __clang__
#pragma clang diagnostic pop
#endif
case Unit::Point:
return value_;
case Unit::Percent:
Expand Down
Loading