From 4a4ea17be2203b30d13d096603eb6d946fe9f2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Turnel?= Date: Thu, 8 Mar 2018 10:01:18 +0100 Subject: [PATCH] Fix 'increases required alignment of target type' --- coreapi/linphonecore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 40de59c18..2027b4101 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2387,7 +2387,8 @@ LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable, } LinphoneCore *linphone_core_ref(LinphoneCore *lc) { - return reinterpret_cast(belle_sip_object_ref(BELLE_SIP_OBJECT(lc))); + belle_sip_object_ref(BELLE_SIP_OBJECT(lc)); + return lc; } void linphone_core_unref(LinphoneCore *lc) {