Bug 234544

Summary: MSVC reports "X86Assembler.h(338): warning C5054: operator '+': deprecated between enumerations of different types" with /std:c++20
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: JavaScriptCoreAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Fujii Hironori 2021-12-20 20:44:12 PST
MSVC reports "X86Assembler.h(338): warning C5054: operator '+': deprecated between enumerations of different types" with /std:c++20

> Source\JavaScriptCore\assembler\X86Assembler.h(338): warning C5054: operator '+': deprecated between enumerations of different types
> Source\JavaScriptCore\assembler\X86Assembler.h(343): warning C5054: operator '+': deprecated between enumerations of different types
> Source\JavaScriptCore\assembler\X86Assembler.h(348): warning C5054: operator '+': deprecated between enumerations of different types

> Source\JavaScriptCore\jit\ICStats.h(153): warning C5054: operator '+': deprecated between enumerations of different types
> Source\JavaScriptCore\jit\ICStats.h(154): warning C5054: operator '+': deprecated between enumerations of different types
Comment 1 Fujii Hironori 2021-12-20 20:48:31 PST
Created attachment 447683 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2021-12-27 20:45:18 PST
<rdar://problem/86948909>
Comment 3 Fujii Hironori 2022-01-04 23:01:02 PST
MSVC /std:c++20 switch introduces a lot of warning C5054 for WebKit. I'm going to suppress it in Bug 233448. Closed this ticket as WONTFIX.