[Webkit-unassigned] [Bug 30226] New: [GTK] Unable to compile software that use WebKitGTK+ with -pedantic flag.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 8 11:30:43 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30226
Summary: [GTK] Unable to compile software that use WebKitGTK+
with -pedantic flag.
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: hicks at op.pl
When i try to compile any software that use WebKitGTK+ with -pedantic flag
passed to compiler i get in return some errors pointing at WebKit headers. Here
is compiler output:
In file included from /usr/include/webkit-1.0/webkit/webkit.h:27,
from webkit.cpp:2:
/usr/include/webkit-1.0/webkit/webkithittestresult.h:74: error: comma at end of
enumerator list
In file included from /usr/include/webkit-1.0/webkit/webkit.h:40,
from webkit.cpp:2:
/usr/include/webkit-1.0/webkit/webkitwebnavigationaction.h:39: error: comma at
end of enumerator list
In file included from /usr/include/webkit-1.0/webkit/webkitenumtypes.h:25,
from /usr/include/webkit-1.0/webkit/webkit.h:44,
from webkit.cpp:2:
/usr/include/webkit-1.0/webkit/webkiterror.h:38: error: comma at end of
enumerator list
/usr/include/webkit-1.0/webkit/webkiterror.h:47: error: comma at end of
enumerator list
/usr/include/webkit-1.0/webkit/webkiterror.h:56: error: comma at end of
enumerator list
After removal of mentioned commas everything works properly.
Steps to reproduce:
1. Create any code that include webkit header files. For example:
#include <cstdlib>
#include <webkit/webkit.h>
int main(int argc, char **argv) {
return EXIT_SUCCESS;
}
2. Compile it with -pedantic flag on: (doesn't matter if this is C++ or C code
as both gcc and g++ will produce mentioned errors)
g++ -pedantic `pkg-config --cflags --libs webkit-1.0` test.cpp -o test
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list