Bug 234544 - MSVC reports "X86Assembler.h(338): warning C5054: operator '+': deprecated between enumerations of different types" with /std:c++20
Summary: MSVC reports "X86Assembler.h(338): warning C5054: operator '+': deprecated be...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-20 20:44 PST by Fujii Hironori
Modified: 2022-01-04 23:01 PST (History)
7 users (show)

See Also:


Attachments
Patch (3.11 KB, patch)
2021-12-20 20:48 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.