From 43df0e9ae41a7d31db93564e7887f3bd588b80d2 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sat, 26 Jul 2014 22:48:36 +0200 Subject: [PATCH] core: fix warning calling non-returning g_error() g_error() does not return, but clang seems not to understand that and gives the following warning. make[4]: Entering directory `./NetworkManager/src' CC NetworkManagerUtils.lo NetworkManagerUtils.c:1584:1: error: control may reach end of non-void function [-Werror,-Wreturn-type] } ^ Signed-off-by: Thomas Haller --- src/NetworkManagerUtils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index ed604bf0f4..a8e3609325 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -1581,6 +1581,7 @@ fail: else nm_log_err (LOGD_CORE, "Failed asserting path component: \"%s\"", name); g_error ("FATAL: Failed asserting path component: %s", name ? name : "(null)"); + g_assert_not_reached (); } gboolean