diff options
| author | Changqing Li <changqing.li@windriver.com> | 2025-08-28 12:54:47 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-08-28 07:56:01 -0700 |
| commit | b8d92b383da13fe3e6e419dbc59b65ded690f0f5 (patch) | |
| tree | b21ac950f7865bc2549dbdcc3533ecc317a6788b /meta-gnome/recipes-gnome/libwnck/files | |
| parent | 9472f4a728b4ec228605e387de32697312e8e549 (diff) | |
| download | meta-openembedded-b8d92b383da13fe3e6e419dbc59b65ded690f0f5.tar.gz | |
libwnck: fix build failure for lib32-libwnck
Fix the following compile error:
../../sources/libwnck-2.31.0/libwnck/tasklist.c:4355:49: error: passing argument 2 of 'sn_startup_sequence_get_last_active_time' from incompatible pointer type [-Wincompatible-pointer-types]
4355 | &tv_sec, &tv_usec);
| ^~~~~~~
| |
| long int *
In file included from /build/tmp/work/core2-32-wrsmllib32-linux/lib32-libwnck/2.31.0/lib32-recipe-sysroot/usr/include/startup-notification-1.0/libsn/sn.h:32,
from ../../sources/libwnck-2.31.0/libwnck/private.h:36,
from ../../sources/libwnck-2.31.0/libwnck/tasklist.c:40:
/build/tmp/work/core2-32-wrsmllib32-linux/lib32-libwnck/2.31.0/lib32-recipe-sysroot/usr/include/startup-notification-1.0/libsn/sn-monitor.h:84:79: note: expected 'time_t *' {aka 'long long int *'} but argument is of type 'long int *'
84 | time_t *tv_sec,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-gnome/libwnck/files')
| -rw-r--r-- | meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch b/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch new file mode 100644 index 0000000000..4e23f613aa --- /dev/null +++ b/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 01d9add9f9c25442329879d1c3513c68ed14a749 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Thu, 28 Aug 2025 10:29:59 +0800 | ||
| 4 | Subject: [PATCH] tasklist.c: fix -Wincompatible-pointer-types error | ||
| 5 | |||
| 6 | Fix the following compile error: | ||
| 7 | ../../sources/libwnck-2.31.0/libwnck/tasklist.c:4355:49: error: passing argument 2 of 'sn_startup_sequence_get_last_active_time' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 8 | 4355 | &tv_sec, &tv_usec); | ||
| 9 | | ^~~~~~~ | ||
| 10 | | | | ||
| 11 | | long int * | ||
| 12 | In file included from /build/tmp/work/core2-32-wrsmllib32-linux/lib32-libwnck/2.31.0/lib32-recipe-sysroot/usr/include/startup-notification-1.0/libsn/sn.h:32, | ||
| 13 | from ../../sources/libwnck-2.31.0/libwnck/private.h:36, | ||
| 14 | from ../../sources/libwnck-2.31.0/libwnck/tasklist.c:40: | ||
| 15 | /build/tmp/work/core2-32-wrsmllib32-linux/lib32-libwnck/2.31.0/lib32-recipe-sysroot/usr/include/startup-notification-1.0/libsn/sn-monitor.h:84:79: note: expected 'time_t *' {aka 'long long int *'} but argument is of type 'long int *' | ||
| 16 | 84 | time_t *tv_sec, | ||
| 17 | | ~~~~~~~~~~~~~~~~~~~^~~~~~ | ||
| 18 | |||
| 19 | Upstream-Status: Inappropriate [ Latest master don't have this code ] | ||
| 20 | |||
| 21 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 22 | --- | ||
| 23 | libwnck/tasklist.c | 3 ++- | ||
| 24 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 25 | |||
| 26 | diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c | ||
| 27 | index 4f0c6c4..758fc5f 100644 | ||
| 28 | --- a/libwnck/tasklist.c | ||
| 29 | +++ b/libwnck/tasklist.c | ||
| 30 | @@ -4340,7 +4340,8 @@ sequence_timeout_callback (void *user_data) | ||
| 31 | WnckTasklist *tasklist = user_data; | ||
| 32 | GList *tmp; | ||
| 33 | GTimeVal now; | ||
| 34 | - long tv_sec, tv_usec; | ||
| 35 | + long long tv_sec; | ||
| 36 | + long tv_usec; | ||
| 37 | double elapsed; | ||
| 38 | |||
| 39 | g_get_current_time (&now); | ||
| 40 | -- | ||
| 41 | 2.34.1 | ||
| 42 | |||
