Skip to content

Commit

Permalink
Fix -Wunneeded-internal-declaration build warning
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260629

Reviewed by Don Olmstead.

* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp:

Canonical link: https://commits.webkit.org/267476@main
  • Loading branch information
mcatanzaro committed Aug 31, 2023
1 parent 8ff1719 commit aa8528f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,15 @@ class WebsiteDataTest : public WebViewTest {
GList* m_dataList { nullptr };
};

#if !ENABLE(2022_GLIB_API)
static void loadChanged(WebKitWebView* webView, WebKitLoadEvent loadEvent, WebViewTest* test)
{
if (loadEvent != WEBKIT_LOAD_FINISHED)
return;
g_signal_handlers_disconnect_by_func(webView, reinterpret_cast<void*>(loadChanged), test);
g_main_loop_quit(test->m_mainLoop);
}
#endif

static void testWebsiteDataConfiguration(WebsiteDataTest* test, gconstpointer)
{
Expand Down

0 comments on commit aa8528f

Please sign in to comment.