RESOLVED FIXED Bug 260222
[Win][Clang] SignalsWin.cpp(82,10): error: case value evaluates to 3221225613, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
https://bugs.webkit.org/show_bug.cgi?id=260222
Summary [Win][Clang] SignalsWin.cpp(82,10): error: case value evaluates to 3221225613...
Fujii Hironori
Reported 2023-08-15 14:56:35 PDT
After 266716@main, clang-cl reports the following error. [2/539] Building CXX object Source\WTF\wtf\CMakeFiles\WTF.dir\win\SignalsWin.cpp.obj FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/win/SignalsWin.cpp.obj C:\PROGRA~1\LLVM\bin\clang-cl.exe /nologo -TP -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DHAVE_CONFIG_H=1 -DNOCRYPT -DNOMINMAX -DNTDDI_VERSION=0x0A000006 -DPAS_BMALLOC=1 -DUNICODE -DWTF_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_UNICODE -D_WIN32_WINNT=0x0A00 -D_WINDOWS -D_WINSOCKAPI_="" -IC:\home\webkit\gb\WebKitBuild\Release -IC:\home\webkit\gb\WebKitBuild\Release\WTF\DerivedSources -IC:\home\webkit\gb\Source\WTF -IC:\home\webkit\gb\Source\WTF\wtf -IC:\home\webkit\gb\Source\WTF\wtf\dtoa -IC:\home\webkit\gb\Source\WTF\wtf\fast_float -IC:\home\webkit\gb\Source\WTF\wtf\persistence -IC:\home\webkit\gb\Source\WTF\wtf\text -IC:\home\webkit\gb\Source\WTF\wtf\text\icu -IC:\home\webkit\gb\Source\WTF\wtf\threads -IC:\home\webkit\gb\Source\WTF\wtf\unicode -imsvcC:\home\webkit\gb\WebKitLibraries\win\include /W4 -fdiagnostics-color=always -fcolor-diagnostics -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-unknown-argument -Wno-nonportable-include-path -Wno-unknown-pragmas -Wno-macro-redefined -Wno-undef /DWIN32 /D_WINDOWS /GR- /EHsc- -fno-strict-aliasing /O2 /Ob2 /DNDEBUG -std:c++20 -MD /wd4018 /wd4060 /wd4068 /wd4100 /wd4127 /wd4146 /wd4189 /wd4201 /wd4244 /wd4245 /wd4251 /wd4275 /wd4267 /wd4305 /wd4309 /wd4312 /wd4324 /wd4389 /wd4456 /wd4457 /wd4458 /wd4459 /wd4505 /wd4611 /wd4646 /wd4701 /wd4702 /wd4706 /wd4715 /wd4722 /wd4723 /wd4805 /wd4838 /wd4840 /wd4996 /wd5205 /wd5054 /wd5055 /Zi /GS /EHa- /EHc- /EHs- /fp:except- /analyze- /bigobj -D_ENABLE_EXTENDED_ALIGNED_STORAGE /utf-8 /validate-charset /Oy- -fmsc-version=1911 /showIncludes /FoSource\WTF\wtf\CMakeFiles\WTF.dir\win\SignalsWin.cpp.obj /FdSource\WTF\wtf\CMakeFiles\WTF.dir\ -c -- C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(82,10): error: case value evaluates to 3221225613, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_DENORMAL_OPERAND: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(403,45): note: expanded from macro 'EXCEPTION_FLT_DENORMAL_OPERAND' #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2583,42): note: expanded from macro 'STATUS_FLOAT_DENORMAL_OPERAND' #define STATUS_FLOAT_DENORMAL_OPERAND ((DWORD )0xC000008DL) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(83,10): error: case value evaluates to 3221225614, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_DIVIDE_BY_ZERO: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(404,45): note: expanded from macro 'EXCEPTION_FLT_DIVIDE_BY_ZERO' #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2584,42): note: expanded from macro 'STATUS_FLOAT_DIVIDE_BY_ZERO' #define STATUS_FLOAT_DIVIDE_BY_ZERO ((DWORD )0xC000008EL) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(84,10): error: case value evaluates to 3221225615, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_INEXACT_RESULT: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(405,45): note: expanded from macro 'EXCEPTION_FLT_INEXACT_RESULT' #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2585,42): note: expanded from macro 'STATUS_FLOAT_INEXACT_RESULT' #define STATUS_FLOAT_INEXACT_RESULT ((DWORD )0xC000008FL) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(85,10): error: case value evaluates to 3221225616, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_INVALID_OPERATION: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(406,45): note: expanded from macro 'EXCEPTION_FLT_INVALID_OPERATION' #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2586,42): note: expanded from macro 'STATUS_FLOAT_INVALID_OPERATION' #define STATUS_FLOAT_INVALID_OPERATION ((DWORD )0xC0000090L) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(86,10): error: case value evaluates to 3221225617, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_OVERFLOW: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(407,45): note: expanded from macro 'EXCEPTION_FLT_OVERFLOW' #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2587,42): note: expanded from macro 'STATUS_FLOAT_OVERFLOW' #define STATUS_FLOAT_OVERFLOW ((DWORD )0xC0000091L) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(87,10): error: case value evaluates to 3221225618, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_STACK_CHECK: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(408,45): note: expanded from macro 'EXCEPTION_FLT_STACK_CHECK' #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2588,42): note: expanded from macro 'STATUS_FLOAT_STACK_CHECK' #define STATUS_FLOAT_STACK_CHECK ((DWORD )0xC0000092L) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(88,10): error: case value evaluates to 3221225619, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_FLT_UNDERFLOW: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(409,45): note: expanded from macro 'EXCEPTION_FLT_UNDERFLOW' #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2589,42): note: expanded from macro 'STATUS_FLOAT_UNDERFLOW' #define STATUS_FLOAT_UNDERFLOW ((DWORD )0xC0000093L) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(90,10): error: case value evaluates to 3221225501, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_ILLEGAL_INSTRUCTION: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(414,45): note: expanded from macro 'EXCEPTION_ILLEGAL_INSTRUCTION' #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2579,42): note: expanded from macro 'STATUS_ILLEGAL_INSTRUCTION' #define STATUS_ILLEGAL_INSTRUCTION ((DWORD )0xC000001DL) ^ C:\home\webkit\gb\Source\WTF\wtf\win\SignalsWin.cpp(92,10): error: case value evaluates to 3221225477, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case EXCEPTION_ACCESS_VIOLATION: ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minwinbase.h(398,45): note: expanded from macro 'EXCEPTION_ACCESS_VIOLATION' #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION ^ C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winnt.h(2574,42): note: expanded from macro 'STATUS_ACCESS_VIOLATION' #define STATUS_ACCESS_VIOLATION ((DWORD )0xC0000005L) ^
Attachments
Fujii Hironori
Comment 1 2023-08-15 15:13:11 PDT
EWS
Comment 2 2023-08-15 21:17:28 PDT
Committed 266936@main (9487cc29d6e2): <https://commits.webkit.org/266936@main> Reviewed commits have been landed. Closing PR #16722 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-08-15 21:18:17 PDT
Note You need to log in before you can comment on or make changes to this bug.