[glib/wip/nacho/gdtlsconnection-warning] gdtlsconnection: do not return on a void method
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/nacho/gdtlsconnection-warning] gdtlsconnection: do not return on a void method
- Date: Fri, 18 Jan 2019 16:29:10 +0000 (UTC)
commit e9506d7719714d91886aed2425d0de8ffdcfdfc2
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Fri Jan 18 17:27:44 2019 +0100
gdtlsconnection: do not return on a void method
Fixes:
warning C4098: 'g_dtls_connection_set_advertised_protocols': 'void' function returning a value
gio/gdtlsconnection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdtlsconnection.c b/gio/gdtlsconnection.c
index d621b1eac..cbc25d4f2 100644
--- a/gio/gdtlsconnection.c
+++ b/gio/gdtlsconnection.c
@@ -1050,7 +1050,7 @@ g_dtls_connection_set_advertised_protocols (GDtlsConnection *conn,
if (iface->set_advertised_protocols == NULL)
return;
- return iface->set_advertised_protocols (conn, protocols);
+ iface->set_advertised_protocols (conn, protocols);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]