Bug 266164
| Summary: | REGRESSION(271781@main): dom/DocumentMarkerController.cpp(788,45): error: format specifies type 'unsigned short' but the argument has type 'Type' [-Werror,-Wformat] | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
| Component: | DOM | Assignee: | Fujii Hironori <fujii.hironori> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Fujii Hironori
clang-cl 17.0.5 can't compile Windows port Debug after 271781@main (bug#266003).
In file included from C:\PSDEV\gc\WebKitBuild\Debug\WebCore\DerivedSources\unified-sources\UnifiedSource-be65d27a-7.cpp:8:
C:\PSDEV\gc\Source\WebCore\dom/DocumentMarkerController.cpp(788,45): error: format specifies type 'unsigned short' but the argument has type 'Type' [-Werror,-Wformat]
788 | fprintf(stderr, " %hu:[%d:%d]", marker.type(), marker.startOffset(), marker.endOffset());
| ~~~ ^~~~~~~~~~~~~
| static_cast<uint16_t>( )
1 error generated.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
GTK buildbot is also has the compiler warning, but not fails due to --no-fatal-warnings.
Buildbot: builder GTK-Linux-64-bit-Debug-Build build 52442
https://build.webkit.org/#/builders/43/builds/52442
/app/webkit/Source/WebCore/dom/DocumentMarkerController.cpp:788:33: warning: format ‘%hu’ expects argument of type ‘int’, but argument 3 has type ‘WebCore::DocumentMarker::Type’ [-Wformat=]
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/21584
EWS
Committed 271825@main (cc8a442ad6dd): <https://commits.webkit.org/271825@main>
Reviewed commits have been landed. Closing PR #21584 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/119448861>