Bug 266164 - REGRESSION(271781@main): dom/DocumentMarkerController.cpp(788,45): error: format specifies type 'unsigned short' but the argument has type 'Type' [-Werror,-Wformat]
Summary: REGRESSION(271781@main): dom/DocumentMarkerController.cpp(788,45): error: for...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-12-09 20:48 PST by Fujii Hironori
Modified: 2023-12-09 21:16 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2023-12-09 20:48:04 PST
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.
Comment 1 Fujii Hironori 2023-12-09 21:04:15 PST
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=]
Comment 2 Fujii Hironori 2023-12-09 21:12:34 PST
Pull request: https://github.com/WebKit/WebKit/pull/21584
Comment 3 EWS 2023-12-09 21:15:26 PST
Committed 271825@main (cc8a442ad6dd): <https://commits.webkit.org/271825@main>

Reviewed commits have been landed. Closing PR #21584 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-12-09 21:16:16 PST
<rdar://problem/119448861>