[glib-networking/warning-windows] base: return a string always to avoid warning on windows
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/warning-windows] base: return a string always to avoid warning on windows
- Date: Mon, 30 Mar 2020 10:26:01 +0000 (UTC)
commit d895d11d03ee1f14d4c7a29cf5b1b17626a8e808
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Mon Mar 30 12:25:00 2020 +0200
base: return a string always to avoid warning on windows
tls/base/gtlsconnection-base.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/tls/base/gtlsconnection-base.c b/tls/base/gtlsconnection-base.c
index ba627a2..03e1e0d 100644
--- a/tls/base/gtlsconnection-base.c
+++ b/tls/base/gtlsconnection-base.c
@@ -483,7 +483,10 @@ op_to_string (GTlsConnectionBaseOp op)
case G_TLS_CONNECTION_BASE_OP_CLOSE_BOTH:
return "OP_CLOSE_BOTH";
}
+
g_assert_not_reached ();
+
+ return "UNKNOWN_OP";
}
static const gchar *
@@ -504,7 +507,10 @@ status_to_string (GTlsConnectionBaseStatus st)
case G_TLS_CONNECTION_BASE_ERROR:
return "ERROR";
}
+
g_assert_not_reached ();
+
+ return "UNKNOWN_STATUS";
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]