Bug 267206

Summary: Fix warnings found by compiling with -Wdeprecated-enum-float-conversion
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: CSSAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 267387    

David Kilzer (:ddkilzer)
Reported 2024-01-07 08:46:57 PST
Fix warnings found by compiling with -Wdeprecated-enum-float-conversion. Examples: Source/WebCore/rendering/style/TextSizeAdjustment.h:41:52: error: comparison of floating-point type 'float' with enumeration type 'WebCore::TextSizeAdjustmentType' is deprecated [-Werror,-Wdeprecated-enum-float-conversion] 41 | constexpr bool isAuto() const { return m_value == AutoTextSizeAdjustment; } | ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ Source/WebCore/rendering/style/TextSizeAdjustment.h:42:52: error: comparison of floating-point type 'float' with enumeration type 'WebCore::TextSizeAdjustmentType' is deprecated [-Werror,-Wdeprecated-enum-float-conversion] 42 | constexpr bool isNone() const { return m_value == NoTextSizeAdjustment; } | ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ 2 errors generated.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-01-07 08:47:11 PST
David Kilzer (:ddkilzer)
Comment 2 2024-01-07 08:49:06 PST
EWS
Comment 3 2024-01-09 07:56:48 PST
Committed 272819@main (c5050dfe5824): <https://commits.webkit.org/272819@main> Reviewed commits have been landed. Closing PR #22488 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.