Bug 35515 - Compiler Error with gcc flag -pedantic an QWebelement
Summary: Compiler Error with gcc flag -pedantic an QWebelement
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 412
Hardware: PC Linux
: P5 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-03-01 00:14 PST by Jürgen Heinemann
Modified: 2010-03-05 13:52 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Heinemann 2010-03-01 00:14:37 PST
Compilation breaks if using GCC Flags: -pedantic -Wno-long-long in my Application Projects
Comment 1 Benjamin Poulain 2010-03-05 10:58:10 PST
I don't think "-pedantic" is supported.
And this is not a QtWebKit problem, it seems JavascriptCore does not compile either with -pedantic.
Comment 2 Jürgen Heinemann 2010-03-05 11:30:49 PST
I think it is.
Again - my attached Patch from first Report?
[code]
--- src/3rdparty/webkit/WebKit/qt/Api/qwebelement.h.orig	2010-02-11 09:25:10.000000000 +0100
+++ src/3rdparty/webkit/WebKit/qt/Api/qwebelement.h	2010-02-11 09:26:04.000000000 +0100
@@ -136,5 +136,5 @@
          InlineStyle,
          CascadedStyle,
-         ComputedStyle,
+         ComputedStyle
     };
     QString styleProperty(const QString& name, StyleResolveStrategy strategy) const;
[/code]
Comment 3 Antonio Gomes 2010-03-05 12:15:58 PST
(In reply to comment #2)
> I think it is.
> Again - my attached Patch from first Report?
> [code]
> --- src/3rdparty/webkit/WebKit/qt/Api/qwebelement.h.orig    2010-02-11
> 09:25:10.000000000 +0100
> +++ src/3rdparty/webkit/WebKit/qt/Api/qwebelement.h    2010-02-11
> 09:26:04.000000000 +0100
> @@ -136,5 +136,5 @@
>           InlineStyle,
>           CascadedStyle,
> -         ComputedStyle,
> +         ComputedStyle
>      };
>      QString styleProperty(const QString& name, StyleResolveStrategy strategy)
> const;
> [/code]

does this change make -pendantic builds to work for you ? if so I think it is not a problem to accept.

please provide a patch w/ a change log entry. for that run

WebKitTools/Scripts/prepare-Changelog --bug 35515 ... and add details to the entry.
Comment 4 Benjamin Poulain 2010-03-05 13:52:47 PST
Yep, definitely no problem with this patch.
Do not hesitate to submit it as an attachement (some info: http://trac.webkit.org/wiki/QtWebKitContrib )

You need to provide a changelog by running WebKitTools/Script/prepare-changelog --bug 35515. When you attach the patch, set the review and commit-queue flag to "?".