Bug 57087 - [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
Summary: [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Minor
Assignee: Nobody
URL:
Keywords: EasyFix, Qt, QtTriaged
Depends on: 57016
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-25 00:18 PDT by Kristian Amlie
Modified: 2011-03-28 14:24 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.05 KB, patch)
2011-03-25 09:28 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (8.24 KB, patch)
2011-03-25 09:48 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (15.40 KB, patch)
2011-03-25 10:38 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (2.37 KB, patch)
2011-03-27 11:40 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (5.79 KB, patch)
2011-03-27 11:47 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Amlie 2011-03-25 00:18:20 PDT
In Source/WebKit/qt/QtWebKit.pro there is a line "DEFINES -= QT_ASCII_CAST_WARNINGS", which disables warnings when you convert from anything 8-bit to a UTF-16 string (default QString). Since warnings are treated as errors in WebKit, this causes the build to fail. Ideally, WebKit should be able to compile with these warnings turned on.
Comment 1 Kristian Amlie 2011-03-25 00:18:51 PDT
Related to https://bugs.webkit.org/show_bug.cgi?id=57016.
Comment 2 Benjamin Poulain 2011-03-25 09:28:57 PDT
Created attachment 86951 [details]
Patch
Comment 3 Benjamin Poulain 2011-03-25 09:48:36 PDT
Created attachment 86952 [details]
Patch
Comment 4 Andreas Kling 2011-03-25 10:12:11 PDT
Comment on attachment 86951 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=86951&action=review

> Source/WebCore/ChangeLog:8
> +        Use explicit convertion for string to avoid depending on the default codec

s/convertion/conversion/
Comment 5 Andreas Kling 2011-03-25 10:15:02 PDT
Comment on attachment 86952 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=86952&action=review

> Source/WebKit2/ChangeLog:8
> +        Use explicit convertion for string to avoid depending on the default codec

s/convertion/conversion/
Comment 6 Benjamin Poulain 2011-03-25 10:23:23 PDT
Comment on attachment 86951 [details]
Patch

Landed as r81967.
Comment 7 Benjamin Poulain 2011-03-25 10:26:09 PDT
Comment on attachment 86952 [details]
Patch

Landed: r81968
Comment 8 Benjamin Poulain 2011-03-25 10:38:28 PDT
Created attachment 86957 [details]
Patch
Comment 9 Benjamin Poulain 2011-03-25 10:39:10 PDT
I'll finish the tests later, the diff is already huge and I need to find a way to automate some of the conversions.
Comment 10 Andreas Kling 2011-03-26 11:23:23 PDT
Comment on attachment 86957 [details]
Patch

Did you performance test this on AIX?
Comment 11 WebKit Commit Bot 2011-03-27 00:19:15 PDT
Comment on attachment 86957 [details]
Patch

Clearing flags on attachment: 86957

Committed r82059: <http://trac.webkit.org/changeset/82059>
Comment 12 WebKit Commit Bot 2011-03-27 00:19:19 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Benjamin Poulain 2011-03-27 03:51:28 PDT
Reopening, there is still the define to change.
Comment 14 Benjamin Poulain 2011-03-27 11:40:50 PDT
Created attachment 87079 [details]
Patch
Comment 15 Benjamin Poulain 2011-03-27 11:47:39 PDT
Created attachment 87082 [details]
Patch

Hopefully it is the last patch. This enable QT_ASCII_CAST_WARNINGS by default and disable it where the warning does not make sense.
Comment 16 Andreas Kling 2011-03-27 11:53:28 PDT
Comment on attachment 87082 [details]
Patch

Good luck, monsieur Poulain!
Comment 17 WebKit Commit Bot 2011-03-27 15:51:59 PDT
The commit-queue encountered the following flaky tests while processing attachment 87079 [details]:

fast/forms/input-appearance-preventDefault.html bug 57194 (author: adele@apple.com)
The commit-queue is continuing to process your patch.
Comment 18 WebKit Commit Bot 2011-03-27 15:55:20 PDT
Comment on attachment 87079 [details]
Patch

Clearing flags on attachment: 87079

Committed r82082: <http://trac.webkit.org/changeset/82082>
Comment 19 Benjamin Poulain 2011-03-28 03:21:56 PDT
Comment on attachment 87082 [details]
Patch

I cq+ this one and I'll check the bots to see if I break any platform.
Comment 20 WebKit Commit Bot 2011-03-28 09:29:30 PDT
Comment on attachment 87082 [details]
Patch

Clearing flags on attachment: 87082

Committed r82125: <http://trac.webkit.org/changeset/82125>
Comment 21 WebKit Commit Bot 2011-03-28 09:29:34 PDT
All reviewed patches have been landed.  Closing bug.
Comment 22 Csaba Osztrogonác 2011-03-28 10:53:05 PDT
Buildfix landed in http://trac.webkit.org/changeset/82134.

Unfortunately CQ can't test define changes in project files 
due to: https://bugs.webkit.org/show_bug.cgi?id=38054
Comment 23 WebKit Review Bot 2011-03-28 12:00:42 PDT
http://trac.webkit.org/changeset/82134 might have broken Leopard Intel Release (Tests)
Comment 24 Csaba Osztrogonác 2011-03-28 14:24:01 PDT
(In reply to comment #18)
> (From update of attachment 87079 [details])
> Clearing flags on attachment: 87079
> 
> Committed r82082: <http://trac.webkit.org/changeset/82082>

Typo fix for it landed in http://trac.webkit.org/changeset/82155