RESOLVED FIXED 121420
[Win] Compile errors in WebCore derived sources.
https://bugs.webkit.org/show_bug.cgi?id=121420
Summary [Win] Compile errors in WebCore derived sources.
peavo
Reported 2013-09-16 03:41:16 PDT
There's a few compile errors in WebCore, e.g: WebCore\DerivedSources\HTMLNames.cpp(4313): error C2440: 'reinterpret_cast' : cannot convert from 'const WebCore::QualifiedName *' to 'WebCore::QualifiedName *' Conversion loses qualifiers WebCore\DerivedSources\MathMLNames.cpp(721): error C2440: 'initializing' : cannot convert from 'const WebCore::QualifiedName *' to 'void *' Conversion loses qualifiers
Attachments
Patch (2.86 KB, patch)
2013-09-16 03:50 PDT, peavo
no flags
Patch (2.77 KB, patch)
2013-09-16 07:36 PDT, peavo
bfulgham: review+
peavo
Comment 1 2013-09-16 03:50:09 PDT
Early Warning System Bot
Comment 2 2013-09-16 03:58:38 PDT
Early Warning System Bot
Comment 3 2013-09-16 04:00:33 PDT
EFL EWS Bot
Comment 4 2013-09-16 04:03:55 PDT
Build Bot
Comment 5 2013-09-16 04:17:14 PDT
EFL EWS Bot
Comment 6 2013-09-16 04:34:33 PDT
Build Bot
Comment 7 2013-09-16 04:36:31 PDT
kov's GTK+ EWS bot
Comment 8 2013-09-16 04:40:20 PDT
peavo
Comment 9 2013-09-16 07:36:43 PDT
Chris Dumez
Comment 10 2013-09-16 07:39:28 PDT
Comment on attachment 211782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=211782&action=review > Source/WebCore/dom/make_names.pl:755 > + print(F " new (NotNull, (void*)&${lowerNamespace}NamespaceURI) AtomicString(${lowerNamespace}NS);\n"); We usually avoid C-Style casts in the code. > Source/WebCore/dom/make_names.pl:866 > + print F " { (void*)&$name$shortCamelType, *${name}Impl },\n"; Ditto.
Brent Fulgham
Comment 11 2013-09-16 08:58:15 PDT
Comment on attachment 211782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=211782&action=review >> Source/WebCore/dom/make_names.pl:755 >> + print(F " new (NotNull, (void*)&${lowerNamespace}NamespaceURI) AtomicString(${lowerNamespace}NS);\n"); > > We usually avoid C-Style casts in the code. When SKIP_STATIC_CONSTRUCTORS_ON_GCC is defined, the types of these globals are non-const. For all other platforms, they are const. This requires a combination of static_cast and const_cast, but it is dependent on the setting of this variable. I think in this case, the old fashioned C-style cast is the most concise way of dealing with this. >> Source/WebCore/dom/make_names.pl:866 >> + print F " { (void*)&$name$shortCamelType, *${name}Impl },\n"; > > Ditto. Idem.
Brent Fulgham
Comment 12 2013-09-16 09:02:58 PDT
This build failure was introduced in http://trac.webkit.org/changeset/155801. Darin reverted part of the change back in http://trac.webkit.org/changeset/155834/trunk/Source/WebCore/dom/make_names.pl. This change is in keeping with Darin's adjustment.
Brent Fulgham
Comment 13 2013-09-16 09:03:26 PDT
Comment on attachment 211782 [details] Patch r=me
Brent Fulgham
Comment 14 2013-09-16 09:17:58 PDT
Note You need to log in before you can comment on or make changes to this bug.