From patchwork Fri Sep 7 16:03:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146214 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1356858ljw; Fri, 7 Sep 2018 09:04:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZl7HQWLftcg8vCAQXowwjnDAZ2UptIrnaF0NdfGx6RZ2qK7RTe71YTx8dVabBAClx1QAOf X-Received: by 2002:a63:1c1b:: with SMTP id c27-v6mr9264407pgc.48.1536336257244; Fri, 07 Sep 2018 09:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536336257; cv=none; d=google.com; s=arc-20160816; b=kaxMmp0++3Ktg5xpCJIbEoQvW2Vq1R+PAF588MFWaWiBodnxKo2kC6o4MtEhTnx4aT 3ha8UlKn5/ipB5U6fp9ym4v+nxbHe4oByulg6oWqHckClDPNuSbaw5Hta6vePVUyd7xU 0EVYgQDQcBNinpEyN1O9aqkBmv4Ly3+Gug/133erbtd1Bx1/SPT4quog56WPD2Dzc9Js N5kB86GkjUTdo+6AAF7Fwpcn/qJDUT468BQVCK5RPYnae3D5fQQVe1JIG3ClOGidHmUl pjt1mFkNOfbaSmQPMu98G+WJKa7k2kXEs2je+pysNVnPTBfTb3yBb3Yg0upaSqudtGiE tu8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=ao/oZrhgbpDpIaElbe9BGSD+SrsBUi/BdZpPcB6yBk0=; b=df4/KXF1TUzSnfdyFWw4zgPHQX2umcAvy6ouQ4dCyF9dgdk5Fxaw7YvDxoxS/Jfa+v x6S3JHiLsmN8Ef//ryWJ6KrR1fjX8JReFEFQ/ff/bzaDdImSTSBQosZSAbeCPVP5ZkoW fA551WVociKTbryyKSATtGUPfYzpWyDqfhYf88zgFxZmGCMuQncMGzWS721jmhWaweMX bTZDs/aVv0u+z5XkNoDv9hnu3LrI7w7bdVv0wZ71LkGkB03X0Nog/BDT/KYRhg1sfCv2 qoikSCLnD0c+cHuGJdU28K70uY9IHbBl9aXj9eCIXqLO6+QN3RuPEX8i0/zlU6QqlmPM POBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=O7MazYmF; 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 o21-v6si8848843pgk.337.2018.09.07.09.04.16; Fri, 07 Sep 2018 09:04:17 -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=O7MazYmF; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 89B4B797E7; Fri, 7 Sep 2018 16:04:14 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mail.openembedded.org (Postfix) with ESMTP id 27350797E6 for ; Fri, 7 Sep 2018 16:04:00 +0000 (UTC) Received: by mail-pg1-f170.google.com with SMTP id d19-v6so7233518pgv.1 for ; Fri, 07 Sep 2018 09:04:02 -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; bh=MLz1eBQZOnwqkSCs/obeEbFU5coVyLCga0zW/YLVDKk=; b=O7MazYmFFtum4DF5Gylq/KYokNU5Hxtl8+Sv2EOr1u6fP/AlzFyglyWg/rpQ1ixm6a bvdZpktfJE3hfDeSCF69oy3u88Nf++GzyehXDbHsT2t0v9sm5MSH2X4FLW9HOHN8OUvm tdzgUFmC0HVJSUZLQnlcnAmRZa0jXe6hnMuASWGKqWqYmOGDCT72Eq2rWx3Fl1zUrRyL /ym/9cL/6SS4tpgStwqrkWFNed9DLm+y09+t55DtneXbWn1kuJ7fXU1xvGsj4csu0y+F 2zzmbBXCuClaepzKzqfz7JHYzGN4hIwdQ8Os+sULEjqurMPP2lxcXGQxpEdiJKcKWpsa hVyg== 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; bh=MLz1eBQZOnwqkSCs/obeEbFU5coVyLCga0zW/YLVDKk=; b=qIy7mfDdORZ2qlx3N7O1yFWxtdY5Y2m2VF7IcywjIe4oT0JsYWb0QyeCnxLu+c6QKg N0qnFEUFqubsu4XocWpFji0OtuGgMosd8goluJGEfL/khqPB9yzjq83erxGqPlIDEnFp /t6WAfFPuqdapMZpsc3xXSQftZ/JL+7KoBJLRAHQSJEIXO8wWQTu2aytYKv9GPLBFRAy DDfiLJdAbYCRM6ABFD5TLh/lM23q1YxP4EZzKk+FmTll5Czh3zCNnahMiB3LG+xks8Cd qMrY1x1VXeooCLU4nuK+1KQfLxv5TXEpvukVdsxc3RHVLypeLANapd92yMyVV+HAXzzW /i4A== X-Gm-Message-State: APzg51BwMl1nfi99TQwma0rs8KeHHyRXFw7DFQW0t670cbYS9rg8B5zu fqqZ6xN43WsT1bRPTN0U7O5O43OD X-Received: by 2002:a63:31c2:: with SMTP id x185-v6mr8926130pgx.373.1536336241620; Fri, 07 Sep 2018 09:04:01 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::71e7]) by smtp.gmail.com with ESMTPSA id 193-v6sm21208122pgh.47.2018.09.07.09.04.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 09:04:00 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 7 Sep 2018 09:03:53 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 1/1] sysprof: 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...fix-non-literal-format-string-issues.patch | 34 +++++++++++++++++++ meta/recipes-kernel/sysprof/sysprof_3.30.0.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-kernel/sysprof/files/0001-fix-non-literal-format-string-issues.patch -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-kernel/sysprof/files/0001-fix-non-literal-format-string-issues.patch b/meta/recipes-kernel/sysprof/files/0001-fix-non-literal-format-string-issues.patch new file mode 100644 index 0000000000..b77bfa4a65 --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/0001-fix-non-literal-format-string-issues.patch @@ -0,0 +1,34 @@ +From de13d1f908335cc882c447e4d7c4360b9e5da190 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 6 Sep 2018 17:49:44 -0700 +Subject: [PATCH] fix non-literal format string issues + +clang errors out when using -Werror=format-nonliteral +since the definition of g_strdup_vprintf() from glib-2.0 +is using va_list and clangs still warns where as +gcc doesn't do that for va_list arguments + +Fixes +src/sp-window.c:96:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral] +| str = g_strdup_vprintf (format, args); +| ^~~~~~ + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/sp-window.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/sp-window.c b/src/sp-window.c +index 4dfac2d..aff4779 100644 +--- a/src/sp-window.c ++++ b/src/sp-window.c +@@ -80,7 +80,7 @@ static guint signals [N_SIGNALS]; + static void sp_window_set_profiler (SpWindow *self, + SpProfiler *profiler); + +-static void ++static G_GNUC_PRINTF(3, 4) void + sp_window_notify_user (SpWindow *self, + GtkMessageType message_type, + const gchar *format, diff --git a/meta/recipes-kernel/sysprof/sysprof_3.30.0.bb b/meta/recipes-kernel/sysprof/sysprof_3.30.0.bb index 7783ab27f5..19dcf25a51 100644 --- a/meta/recipes-kernel/sysprof/sysprof_3.30.0.bb +++ b/meta/recipes-kernel/sysprof/sysprof_3.30.0.bb @@ -15,6 +15,7 @@ SRC_URI += " \ file://define-NT_GNU_BUILD_ID.patch \ file://0001-Do-not-build-anything-in-help-as-it-requires-itstool.patch \ file://wordsize.patch \ + file://0001-fix-non-literal-format-string-issues.patch \ " RECIPE_NO_UPDATE_REASON = "Waiting for resolution of https://bugzilla.gnome.org/show_bug.cgi?id=794625"