Commit 008c2692 authored by Abderrahim Kitouni's avatar Abderrahim Kitouni

sysprof: backport a patch to fix build on 32-bit platforms

parent 1e89e7d9
Pipeline #186011 passed with stages
in 197 minutes and 25 seconds
......@@ -3,6 +3,9 @@ kind: meson
sources:
- kind: tar
url: gnome_downloads:sysprof/3.36/sysprof-3.36.0.tar.xz
- kind: patch
path: files/sysprof/32-bit-fix.patch
build-depends:
- freedesktop-sdk.bst:components/git-minimal.bst
- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
......
From 5dea152c7728f5a37370ad8a229115833e36b4f6 Mon Sep 17 00:00:00 2001
From: Rasmus Thomsen <oss@cogitri.dev>
Date: Sat, 7 Mar 2020 10:44:16 +0100
Subject: [PATCH] tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for
gsize
This fixes the build on 32-bit platforms with -Werror-format
fixes #32
---
src/tests/allocs-by-size.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c
index 666113a..6260d4b 100644
--- a/src/tests/allocs-by-size.c
+++ b/src/tests/allocs-by-size.c
@@ -109,7 +109,7 @@ allocs_by_size (SysprofCaptureReader *reader)
{
const Item *item = &g_array_index (ar, Item, i);
- g_print ("%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT"\n",
+ g_print ("%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT"\n",
item->size, item->cmp, item->count);
}
}
--
2.26.2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment