From patchwork Fri May 10 20:49:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 163954 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2857807ilr; Fri, 10 May 2019 13:50:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJxl0bRxttLBLr8csQ8iRVQLTh0niuff9c/XYvF326p9C9JdtErgsP8WBVMarq+2rM1HRa X-Received: by 2002:a65:51c8:: with SMTP id i8mr16116372pgq.175.1557521415308; Fri, 10 May 2019 13:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557521415; cv=none; d=google.com; s=arc-20160816; b=w4+fReY+tFWcK7Q7zQcXQHqX1Iw+EFoH85M8kG3s7vcwZCCGwHgfaFQiiuXZOhK/Fo 8VA+T77AqY3fbE+G5NFeUYxZQ5o3U8nf9Blu1VyunT9nUEz2EM63nKooX2i7mnBSd+pl jAvWNJKRyED+SkZy/qkBnKfW+fVIigEzQ3erYoVvs+b0t0XXQgqhMB87tDTarrM3Q5dZ P6A20RJCtE3jZXjSTH/yGBTKDjqgzstG2HzUa3dYLezpKK4XVhoA9RhQL5kIIZYoM32n xJ9VdTfW6+Ty9NacZR/h8x/TLF5L7IqtHrMOBqndVa/BE7rAAnSsB2+UC26URVsynWb9 9HcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=FP8DAYIl7yAa3yfUJ05A95d0ijGTcTqDmNni8mYmvjo=; b=THmJCXeswccQ363gVcKvrB4YC/8nJGQu97KE5di/6hQ8ZKqMWw0+OyO9jQiDtqobv5 ShsGJhvKu0ab9RoF1bfT8okYLXd5CwNzl1Bnq7ra6o79gfNuq/C1QX2SWDjPgHaVlGLf nRNNkh5yD9ATrkaqg/jZBi3iIucjXdp8lPPidjfu3h3101Zynrx2knPduu0iIpKYw0a6 VBP8FGUV9pIjRS/A3H/slVHlqmT7j+34BEEYoHIMP20q7bMoskcS+v3Hq835slVgrXnQ rSO86HKkPmsDbTePTXgl9prvsbnUyOpM3SdNn78UCGhlf1NIojPj6On17TGd3VeUK9pu mI6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=c3uKBLl3; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e3si9440746pfa.155.2019.05.10.13.50.14; Fri, 10 May 2019 13:50:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=c3uKBLl3; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4AA5B7E0DF; Fri, 10 May 2019 20:50:11 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 6C9966004D for ; Fri, 10 May 2019 20:50:10 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id t22so3543452pgi.10 for ; Fri, 10 May 2019 13:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zl5143rxrym+K3rVfcxwCvkgIQ1d9IxqPQgArV5zBKk=; b=c3uKBLl378AOGFmboay3i+ODcS0HpNXGzGLVu2wYwFUn8ArvrnCftPgpTMTS9vY542 Yr2g0LN8RHhv/RDzq0K8AB2Ss53Q4p3Y8gTJ89IckL351JBqjnmJ/HTNIWIToIQtUS4j yRTH8vDy0E0163YZN4si7L0Hva9rUsIJsj6j5YYccEhzuaArOCXEhGZcwclXD7ud2lB+ wCy6YPwcyr7wYRizBNfp9wASU3x26c2KpPLoS3DCPANicbVsN0PV5apbEpQFMx/Qef2+ f2t4cRSbPCXYuK7umSMO5zma5tjmhEy7kh3p6QNXxSdlGuRfQEPc19RtXZg4mymbw9wf pwUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zl5143rxrym+K3rVfcxwCvkgIQ1d9IxqPQgArV5zBKk=; b=X3sH8Sg5aBDz6RtGKartSeicChSy9IWuPDz+7QfM53UUU7T5syuBf2VEpZmsack0qc 8nRzEpGoGi7gr+6KdFPdZxTm2SAw/NN+lO5yoQSTbRUJLRJ9uCzgD/GYena3gY06Jpv/ Mk9YPo/lK30f2odcNGHdeEfqkOIsoIsocVH3l0Wt4lmr+Eo6VD+N5/wxq4BGIbLevg8T N5xHK0iPrkZMbPsdvr3zyl1s22z0AtyFwGBqfIo8YAI79ro8kl9vFzADNEAjKmwDcX0i Y3zDlDbFsdDqdriwJ5JYeldnU0zlkxK7xjt+bI8itTf/j0S6vPy8m0XGIHAgBMCC+zvt ur2Q== X-Gm-Message-State: APjAAAV7OunZYhmNsXTm+FnqA6SjJhxhogRDX2tkUoFqeZylBnm0cAQ2 q9N6TBazK6i20NEENMZmADull7uTfmg= X-Received: by 2002:a63:e417:: with SMTP id a23mr15806676pgi.224.1557521410806; Fri, 10 May 2019 13:50:10 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::592a]) by smtp.gmail.com with ESMTPSA id l1sm7477044pgp.9.2019.05.10.13.50.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 13:50:10 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 10 May 2019 13:49:53 -0700 Message-Id: <20190510204954.33591-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] mmc-utils: Fix build with clang X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org clang has more warnings to report, lets fix them Signed-off-by: Khem Raj --- ...tra-braces-when-initializing-subobje.patch | 32 +++++++++++++++++++ meta/recipes-devtools/mmc/mmc-utils_git.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch b/meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch new file mode 100644 index 0000000000..12707357b2 --- /dev/null +++ b/meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch @@ -0,0 +1,32 @@ +From 04fbe6ddb5f1e02efbcae3cdf5beb16757a98948 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 10 May 2019 12:58:01 -0700 +Subject: [PATCH] mmc_cmd.c: Use extra braces when initializing subobjects + +clang warns with -Werror,-Wmissing-braces, as following error +| mmc_cmds.c:1886:36: error: suggest braces around initialization of subobject [-Werror,-W +missing-braces] +| struct rpmb_frame frame_status = {0}; +| ^ +| {} + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + mmc_cmds.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mmc_cmds.c b/mmc_cmds.c +index 19a9da1..838e8c3 100644 +--- a/mmc_cmds.c ++++ b/mmc_cmds.c +@@ -1883,7 +1883,7 @@ static int do_rpmb_op(int fd, + u_int16_t rpmb_type; + struct mmc_ioc_multi_cmd *mioc; + struct mmc_ioc_cmd *ioc; +- struct rpmb_frame frame_status = {0}; ++ struct rpmb_frame frame_status = {{0}}; + + if (!frame_in || !frame_out || !out_cnt) + return -EINVAL; diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb b/meta/recipes-devtools/mmc/mmc-utils_git.bb index f3a7234670..0c401c86fa 100644 --- a/meta/recipes-devtools/mmc/mmc-utils_git.bb +++ b/meta/recipes-devtools/mmc/mmc-utils_git.bb @@ -9,6 +9,7 @@ SRCREV = "aef913e31b659462fe6b9320d241676cba97f67b" PV = "0.1+git${SRCPV}" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;branch=${SRCBRANCH} \ + file://0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch \ " UPSTREAM_CHECK_COMMITS = "1" From patchwork Fri May 10 20:49:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 163955 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2858025ilr; Fri, 10 May 2019 13:50:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNhYocyAWG1fQH4eOw4vF9oV3zxy/vKYW4JSKz10R+Iu7nNT56rSZ5ib1fMI4G3vG8k5fc X-Received: by 2002:a17:902:bc85:: with SMTP id bb5mr15713666plb.310.1557521430653; Fri, 10 May 2019 13:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557521430; cv=none; d=google.com; s=arc-20160816; b=qXDiXG5rgR6SdFXzOnpYCzsHJzf41sRoprRo0hW+jLI+7fW7mhU+KzJwNtP4F6K1sK gfLOPrJP4VpC6Fbj65qXMqPpAUKVl0re8r5qtoUgEwx4E36fPAKlqNvzQF5AoJslJ2zX V7jlgBYBA8nvG9e/5rAbGgZ9nZ3t3WZW1v1zR9PW1rGHozab3BtUPHEMp0WoW90pfEK0 bOI2mWigbOzs9LYtBE81DDSxQrb36yFtX5lsoatsX/yejjSE/ah/8OYUoOU6pmEHF6Ow cngfX8IiAXF6TxHwF+SG6wwDDl/X2staobxXyFbqrmtu2x0Yd9O9q/Y91xhrBt/Zp5o+ kZtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=Cb9OqXiTruEdXnNiQi4OlwL8H5aHAn8YlVsyUQbfEYY=; b=WFIXphrdvJ3jg2E3bWCRXfSTlc6GLalKpqL8RIbybFRYLN76vZ5j5SwQYW0xmsULYC EN3aKItXM8ku+OuLA9Ik9Mir6FxIHB+32vRs4xM9EGcUjPHrUIgXLoaXjxzFOZbatQvv QsPVvLTFXLqINrZxka7w6d9TywgH+gDgBs5l4HHHxxuYdNv0sd/u8t0uacTKoEQ2pfa6 0AdzbmPIns63hxATblnpL8gqJvrG6XOFAn3DQ+LhYLoJhbdHCgIqnqoZnC5S47XIwNeF uFIPgPs1WSIbnscUuzLt1jIeWAMIsrexWVDXdmIMiXSov3pnuas55xLp936KVkn6Y2lh 9uww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LDOnxMNX; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p12si9965998pll.103.2019.05.10.13.50.30; Fri, 10 May 2019 13:50:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LDOnxMNX; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id D13857E0E7; Fri, 10 May 2019 20:50:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by mail.openembedded.org (Postfix) with ESMTP id E18B16004D for ; Fri, 10 May 2019 20:50:10 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id p15so3349677pll.4 for ; Fri, 10 May 2019 13:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ppsxKO8xblriy2JBFqE5R90yyrME2ecLnMDuOUDpa98=; b=LDOnxMNXil5BoujrONoNK9B5XMtu+JFabrKQdES5Ud1s4vsPcIYHMapEFPn+Llqw7o eBxemmVEJHRN15mtmAvJ0EJPpnfGH4YGPo24DzcZ+TfaYze5cFjyOX5vDMDi4TqZr+wf bb/hZLGvXRfwGO0V2r+i6wkSXOwkAY6J9yph8G1bkogl+J1QAkTdDhKlQGaNz0BPG8J4 EuRtPZhZFEchmXzPHGu7OilCr+4A95ana3DZIR74Osd1jfmfQGpgqyb64KdAlPxJuzwq 57dnSXKqkB512TP1ZYP7QGYAfUq3WPQtxMjRpkisvvffLsJ6DeMo1MHoiEyVtx6cSNTf o6Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ppsxKO8xblriy2JBFqE5R90yyrME2ecLnMDuOUDpa98=; b=iOrHy7ulLTNulnqp8gCRYa8MgubMtBJtZLCn7sVAMm/f5mMTYV377Mt0LqxSm2pkOf +5k2jec8zJiakbtaVxVpgEii1FLxE2/2jil5f5yJO7CEAwQDqutsDqUIcBHEpxKghlrI rpFhLtJF6FOIvl3kSdWU4q7g/OB0lmjR/U5VVf08j7fD6RZllqe31qM6xMc3gsmGIdcr xVGkYtBjFGDZ9TDrVczsi7ZeFOaypllfkVSrYhkBWLEhuu7lzxExQLdees5VXv59+K4G pAWduDvWq6Dq4ENeoTAFLfsJcxqgAJVFVl9FdukHdRw48+sqk1oizaQLDM2Xfcw1w3tW qHCw== X-Gm-Message-State: APjAAAX4KqX05yGL9tuplVyxEcDpo++81lmSZqtOF1nf7rzVlgN77rNO RRyL7CM5L0NDi1yYFqnzgqFM2lkgclM= X-Received: by 2002:a17:902:2962:: with SMTP id g89mr15649914plb.190.1557521411591; Fri, 10 May 2019 13:50:11 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::592a]) by smtp.gmail.com with ESMTPSA id l1sm7477044pgp.9.2019.05.10.13.50.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 13:50:11 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 10 May 2019 13:49:54 -0700 Message-Id: <20190510204954.33591-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190510204954.33591-1-raj.khem@gmail.com> References: <20190510204954.33591-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] epiphany: Fix build with clang X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This patch is upstreamable, issue is not caught by gcc Signed-off-by: Khem Raj --- .../epiphany/epiphany_3.32.1.2.bb | 1 + ...itialization-of-variable-with-__attr.patch | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-gnome/epiphany/files/0001-Do-not-bypass-initialization-of-variable-with-__attr.patch -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-gnome/epiphany/epiphany_3.32.1.2.bb b/meta/recipes-gnome/epiphany/epiphany_3.32.1.2.bb index ba2e851bb6..fc26a878d6 100644 --- a/meta/recipes-gnome/epiphany/epiphany_3.32.1.2.bb +++ b/meta/recipes-gnome/epiphany/epiphany_3.32.1.2.bb @@ -12,6 +12,7 @@ REQUIRED_DISTRO_FEATURES = "x11 opengl" SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \ file://0002-help-meson.build-disable-the-use-of-yelp.patch \ + file://0001-Do-not-bypass-initialization-of-variable-with-__attr.patch \ " SRC_URI[archive.md5sum] = "93faec353e9f62519859e6164350fd5d" SRC_URI[archive.sha256sum] = "a8284fb9bbc8b7914a154a8eac1598c8b59ae421e0d685146fb48198427926be" diff --git a/meta/recipes-gnome/epiphany/files/0001-Do-not-bypass-initialization-of-variable-with-__attr.patch b/meta/recipes-gnome/epiphany/files/0001-Do-not-bypass-initialization-of-variable-with-__attr.patch new file mode 100644 index 0000000000..35821e3c06 --- /dev/null +++ b/meta/recipes-gnome/epiphany/files/0001-Do-not-bypass-initialization-of-variable-with-__attr.patch @@ -0,0 +1,54 @@ +From 1c35833385f5a193513888ba40791ceaa64d575b Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 10 May 2019 13:41:52 -0700 +Subject: [PATCH] Do not bypass initialization of variable with + __attribute__((cleanup)) + +This is reported with clang e.g. +../../../../../../../workspace/sources/epiphany/lib/ephy-web-app-utils.c:391:5: error: cannot jump from this goto statement to its label + goto out; + ^ +../../../../../../../workspace/sources/epiphany/lib/ephy-web-app-utils.c:398:20: note: jump bypasses initialization of variable with __attribute__((cleanup)) + g_autofree char *app_file = g_build_filename (profile_dir, ".app", NULL); + ^ +../../../../../../../workspace/sources/epiphany/lib/ephy-web-app-utils.c:385:5: error: cannot jump from this goto statement to its label + goto out; + ^ +../../../../../../../workspace/sources/epiphany/lib/ephy-web-app-utils.c:398:20: note: jump bypasses initialization of variable with __attribute__((cleanup)) g_autofree char *app_file = g_build_filename (profile_dir, ".app", NULL); + ^ + +Ensure that the initialization is deterministic for goto to work +reliably + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + lib/ephy-web-app-utils.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c +index 97f3f24..fb1f732 100644 +--- a/lib/ephy-web-app-utils.c ++++ b/lib/ephy-web-app-utils.c +@@ -376,7 +376,8 @@ ephy_web_application_create (const char *id, + { + char *profile_dir; + char *desktop_file_path = NULL; +- ++ g_autofree char *app_file = NULL; ++ int fd; + /* If there's already a WebApp profile for the contents of this + * view, do nothing. */ + profile_dir = ephy_web_application_get_profile_directory (id); +@@ -395,8 +396,8 @@ ephy_web_application_create (const char *id, + ephy_profile_utils_set_migration_version_for_profile_dir (EPHY_PROFILE_MIGRATION_VERSION, profile_dir); + + /* Create an .app file. */ +- g_autofree char *app_file = g_build_filename (profile_dir, ".app", NULL); +- int fd = g_open (app_file, O_WRONLY|O_CREAT|O_TRUNC, 0644); ++ app_file = g_build_filename (profile_dir, ".app", NULL); ++ fd = g_open (app_file, O_WRONLY|O_CREAT|O_TRUNC, 0644); + if (fd < 0) { + LOG ("Failed to create .app file: %s", g_strerror (errno)); + goto out;