mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
gio/proxy: Fixed compilation warnings
* Wrong return type (NULL instead of FALSE) * Unused static function declaration
This commit is contained in:
@@ -200,7 +200,7 @@ g_proxy_supports_hostname (GProxy *proxy)
|
|||||||
{
|
{
|
||||||
GProxyInterface *iface;
|
GProxyInterface *iface;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_PROXY (proxy), NULL);
|
g_return_val_if_fail (G_IS_PROXY (proxy), FALSE);
|
||||||
|
|
||||||
iface = G_PROXY_GET_IFACE (proxy);
|
iface = G_PROXY_GET_IFACE (proxy);
|
||||||
|
|
||||||
|
@@ -39,8 +39,6 @@ struct _GSocks4ProxyClass
|
|||||||
GSocks4aProxyClass parent_class;
|
GSocks4aProxyClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void g_socks4_proxy_iface_init (GProxyInterface *proxy_iface);
|
|
||||||
|
|
||||||
#define g_socks4_proxy_get_type _g_socks4_proxy_get_type
|
#define g_socks4_proxy_get_type _g_socks4_proxy_get_type
|
||||||
G_DEFINE_TYPE_WITH_CODE (GSocks4Proxy, g_socks4_proxy, G_TYPE_SOCKS4A_PROXY,
|
G_DEFINE_TYPE_WITH_CODE (GSocks4Proxy, g_socks4_proxy, G_TYPE_SOCKS4A_PROXY,
|
||||||
_g_io_modules_ensure_extension_points_registered ();
|
_g_io_modules_ensure_extension_points_registered ();
|
||||||
|
Reference in New Issue
Block a user