summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-09-07 09:03:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-11 09:05:35 +0100
commit09f94874fdf79dbc6c7fd340115afa7d665157ae (patch)
tree3e90ea9c803e631f3e6cebfe173eed7b5472e2a2 /meta/recipes-kernel/sysprof
parente6277eb17b19a8b3f50e30897dc20be2e935c0a7 (diff)
downloadpoky-09f94874fdf79dbc6c7fd340115afa7d665157ae.tar.gz
sysprof: Fix build with clang
(From OE-Core rev: f179c402f46a3d3c42760d66d6a20c9e0b93f50d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/sysprof')
-rw-r--r--meta/recipes-kernel/sysprof/files/0001-fix-non-literal-format-string-issues.patch34
-rw-r--r--meta/recipes-kernel/sysprof/sysprof_3.30.0.bb1
2 files changed, 35 insertions, 0 deletions
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..38f9f5f66a
--- /dev/null
+++ b/meta/recipes-kernel/sysprof/files/0001-fix-non-literal-format-string-issues.patch
@@ -0,0 +1,34 @@
1From de13d1f908335cc882c447e4d7c4360b9e5da190 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 6 Sep 2018 17:49:44 -0700
4Subject: [PATCH] fix non-literal format string issues
5
6clang errors out when using -Werror=format-nonliteral
7since the definition of g_strdup_vprintf() from glib-2.0
8is using va_list and clangs still warns where as
9gcc doesn't do that for va_list arguments
10
11Fixes
12src/sp-window.c:96:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
13| str = g_strdup_vprintf (format, args);
14| ^~~~~~
15
16Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/sysprof/merge_requests/6]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 src/sp-window.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/sp-window.c b/src/sp-window.c
23index 4dfac2d..aff4779 100644
24--- a/src/sp-window.c
25+++ b/src/sp-window.c
26@@ -80,7 +80,7 @@ static guint signals [N_SIGNALS];
27 static void sp_window_set_profiler (SpWindow *self,
28 SpProfiler *profiler);
29
30-static void
31+static G_GNUC_PRINTF(3, 4) void
32 sp_window_notify_user (SpWindow *self,
33 GtkMessageType message_type,
34 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 += " \
15 file://define-NT_GNU_BUILD_ID.patch \ 15 file://define-NT_GNU_BUILD_ID.patch \
16 file://0001-Do-not-build-anything-in-help-as-it-requires-itstool.patch \ 16 file://0001-Do-not-build-anything-in-help-as-it-requires-itstool.patch \
17 file://wordsize.patch \ 17 file://wordsize.patch \
18 file://0001-fix-non-literal-format-string-issues.patch \
18 " 19 "
19RECIPE_NO_UPDATE_REASON = "Waiting for resolution of https://bugzilla.gnome.org/show_bug.cgi?id=794625" 20RECIPE_NO_UPDATE_REASON = "Waiting for resolution of https://bugzilla.gnome.org/show_bug.cgi?id=794625"
20 21