[Webkit-unassigned] [Bug 45538] New: [GTK] Fix warnings because of bad assignments in testatk.c
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 10 06:35:05 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45538
Summary: [GTK] Fix warnings because of bad assignments in
testatk.c
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: msanchez at igalia.com
CC: xan.lopez at gmail.com
In testatk.c in testWebkitAtkListsOfItems, there are several places where AtkObject instances are expected and AtkText instances are passed instead, and viceversa, resulting in warning messages during compilation:
../../WebKit/gtk/tests/testatk.c: In function ‘testWebkitAtkListsOfItems’:
../../WebKit/gtk/tests/testatk.c:879: warning: assignment from incompatible pointer type
../../WebKit/gtk/tests/testatk.c:880: warning: assignment from incompatible pointer type
../../WebKit/gtk/tests/testatk.c:881: warning: assignment from incompatible pointer type
../../WebKit/gtk/tests/testatk.c:887: warning: passing argument 1 of ‘atk_text_get_text’ from incompatible pointer type
/opt/gnome2/include/atk-1.0/atk/atktext.h:291: note: expected ‘struct AtkText *’ but argument is of type ‘struct AtkObject *’
../../WebKit/gtk/tests/testatk.c:888: warning: passing argument 1 of ‘atk_text_get_text’ from incompatible pointer type
/opt/gnome2/include/atk-1.0/atk/atktext.h:291: note: expected ‘struct AtkText *’ but argument is of type ‘struct AtkObject *’
../../WebKit/gtk/tests/testatk.c:889: warning: passing argument 1 of ‘atk_text_get_text’ from incompatible pointer type
/opt/gnome2/include/atk-1.0/atk/atktext.h:291: note: expected ‘struct AtkText *’ but argument is of type ‘struct AtkObject *’
../../WebKit/gtk/tests/testatk.c:902: warning: assignment from incompatible pointer type
../../WebKit/gtk/tests/testatk.c:903: warning: assignment from incompatible pointer type
../../WebKit/gtk/tests/testatk.c:904: warning: assignment from incompatible pointer type
../../WebKit/gtk/tests/testatk.c:906: warning: passing argument 1 of ‘atk_text_get_text’ from incompatible pointer type
/opt/gnome2/include/atk-1.0/atk/atktext.h:291: note: expected ‘struct AtkText *’ but argument is of type ‘struct AtkObject *’
../../WebKit/gtk/tests/testatk.c:907: warning: passing argument 1 of ‘atk_text_get_text’ from incompatible pointer type
/opt/gnome2/include/atk-1.0/atk/atktext.h:291: note: expected ‘struct AtkText *’ but argument is of type ‘struct AtkObject *’
../../WebKit/gtk/tests/testatk.c:908: warning: passing argument 1 of ‘atk_text_get_text’ from incompatible pointer type
/opt/gnome2/include/atk-1.0/atk/atktext.h:291: note: expected ‘struct AtkText *’ but argument is of type ‘struct AtkObject *’
Attaching a patch to fix all these issues in brief...
--
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