Commit e5994d3a authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

Fixing some compiler warnings

https://bugs.webkit.org/show_bug.cgi?id=117791

Patch by Xabier Rodriguez Calvar <calvaris@igalia.com> on 2013-06-27
Reviewed by Martin Robinson.

Source/WebCore:

No new tests needed.

* accessibility/atk/WebKitAccessibleInterfaceText.cpp:
(webkitAccessibleTextGetTextForOffset): Fixed warning about
uninitialized variable.

Source/WebKit2:

* UIProcess/API/gtk/tests/WebExtensionTest.cpp: Properly
initialized GDBusInterfaceVTable.
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(webkitWebPageCreate): Added missing fields to the
WKBundlePageLoaderClient.

Tools:

* GNUmakefile.am: Silenced format warning.
* TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp:
(TestWebKitAPI::DOMWindowExtensionNoCache::globalObjectIsAvailableForFrame):
Solved warning about uninitialized variable.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a73513a2
2013-06-27 Xabier Rodriguez Calvar <calvaris@igalia.com>
Fixing some compiler warnings
https://bugs.webkit.org/show_bug.cgi?id=117791
Reviewed by Martin Robinson.
No new tests needed.
* accessibility/atk/WebKitAccessibleInterfaceText.cpp:
(webkitAccessibleTextGetTextForOffset): Fixed warning about
uninitialized variable.
2013-06-27 Iago Toral Quiroga <itoral@igalia.com>
 
Use consistent file names for WidgetBackingStoreGtkX11 class
......@@ -619,14 +619,13 @@ static gchar* webkitAccessibleTextGetTextForOffset(AtkText* text, gint offset, A
#if PLATFORM(GTK)
// FIXME: Get rid of the code below once every single get_text_*_offset
// function has been properly implemented without using Pango/Cairo.
GailOffsetType offsetType;
GailOffsetType offsetType = GAIL_AT_OFFSET;
switch (textPosition) {
case GetTextPositionBefore:
offsetType = GAIL_BEFORE_OFFSET;
break;
case GetTextPositionAt:
offsetType = GAIL_AT_OFFSET;
break;
case GetTextPositionAfter:
......
2013-06-27 Xabier Rodriguez Calvar <calvaris@igalia.com>
Fixing some compiler warnings
https://bugs.webkit.org/show_bug.cgi?id=117791
Reviewed by Martin Robinson.
* UIProcess/API/gtk/tests/WebExtensionTest.cpp: Properly
initialized GDBusInterfaceVTable.
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(webkitWebPageCreate): Added missing fields to the
WKBundlePageLoaderClient.
2013-06-27 Iago Toral Quiroga <itoral@igalia.com>
Use consistent file names for WidgetBackingStoreGtkX11 class
......
......@@ -121,7 +121,7 @@ static void methodCallCallback(GDBusConnection* connection, const char* sender,
}
static const GDBusInterfaceVTable interfaceVirtualTable = {
methodCallCallback, 0, 0
methodCallCallback, 0, 0, { 0, }
};
static void busAcquiredCallback(GDBusConnection* connection, const char* name, gpointer userData)
......
......@@ -311,6 +311,8 @@ WebKitWebPage* webkitWebPageCreate(WebPage* webPage)
0, // registerIntentServiceForFrame_unavailable
0, // didLayout
0, // featuresUsedInPage
0, // willLoadURLRequest;
0, // willLoadDataRequest;
};
WKBundlePageSetPageLoaderClient(toAPI(webPage), &loaderClient);
......
2013-06-27 Xabier Rodriguez Calvar <calvaris@igalia.com>
Fixing some compiler warnings
https://bugs.webkit.org/show_bug.cgi?id=117791
Reviewed by Martin Robinson.
* GNUmakefile.am: Silenced format warning.
* TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp:
(TestWebKitAPI::DOMWindowExtensionNoCache::globalObjectIsAvailableForFrame):
Solved warning about uninitialized variable.
2013-06-27 Christophe Dumez <ch.dumez@sisa.samsung.com>
Fix bindings tests after r152080
......
......@@ -254,7 +254,8 @@ TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
-I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
-I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders \
$(global_cppflags) \
$(javascriptcore_cppflags)
$(javascriptcore_cppflags) \
-Wno-missing-format-attribute
# For the Gtk port we want to use XP_UNIX both on X11 and Mac
if !TARGET_WIN32
......
......@@ -204,7 +204,7 @@ void DOMWindowExtensionNoCache::globalObjectIsAvailableForFrame(WKBundleFrameRef
{
WKBundleDOMWindowExtensionRef extension = WKBundleDOMWindowExtensionCreate(frame, world);
int index;
int index = 0;
bool standard;
standard = world == WKBundleScriptWorldNormalWorld();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment