diff options
author | 2025-01-31 13:02:44 -0600 | |
---|---|---|
committer | 2025-02-05 20:21:08 +0100 | |
commit | 7f26127ab908ece34a6d68a4a119db8612bdcf16 (patch) | |
tree | ddb5a54a4f736a54220866bb242014b9e752e772 /net-misc/nx/files | |
parent | dev-python/qtpy: drop use pyside2 properly (diff) | |
download | gentoo-7f26127ab908ece34a6d68a4a119db8612bdcf16.tar.gz gentoo-7f26127ab908ece34a6d68a4a119db8612bdcf16.tar.bz2 gentoo-7f26127ab908ece34a6d68a4a119db8612bdcf16.zip |
net-misc/nx: fix compilation with gcc14 for 32bit systems
Closes: https://bugs.gentoo.org/927780
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Closes: https://github.com/gentoo/gentoo/pull/40403
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'net-misc/nx/files')
-rw-r--r-- | net-misc/nx/files/nx-3.5.99.26-gcc14-32bit.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/net-misc/nx/files/nx-3.5.99.26-gcc14-32bit.patch b/net-misc/nx/files/nx-3.5.99.26-gcc14-32bit.patch new file mode 100644 index 000000000000..c641b033f956 --- /dev/null +++ b/net-misc/nx/files/nx-3.5.99.26-gcc14-32bit.patch @@ -0,0 +1,51 @@ +Bugs: https://bugs.gentoo.org/927780 +https://github.com/ArcticaProject/nx-libs/pull/1087 + +From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +Date: Wed, 15 Jan 2025 22:03:00 +0000 +Subject: [PATCH] dix: Fix a warning about GetTimeInMillis return value in + XFont2. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Ported over from XOrg Server: + + commit e1ccd0fa0e1081edf8a2c69ce6e8e3f67a4aecba + Author: Emma Anholt <emma@anholt.net> + Date: Mon May 7 16:46:15 2018 -0700 + + dix: Fix a warning about GetTimeInMillis return value in XFont2. + + Signed-off-by: Eric Anholt <eric@anholt.net> + Reviewed-by: Adam Jackson <ajax@redhat.com> + +This resolves the following issue when built with GCC-14 (and beyond): + + ../../dix/dixfonts.c: At top level: + ../../dix/dixfonts.c:2485:27: error: initialization of âuint32_t (*)(void)â {aka âunsigned int (*)(void)â} from incompatible pointer type âCARD32 (*)(void)â {aka âlong unsigned int (*)(void)â} [-Wincompatible-pointer-types] + 2485 | .get_time_in_millis = GetTimeInMillis, + | +--- a/nx-X11/programs/Xserver/dix/dixfonts.c ++++ b/nx-X11/programs/Xserver/dix/dixfonts.c +@@ -2471,6 +2471,11 @@ remove_fs_handlers(FontPathElementPtr fpe, BlockHandlerProcPtr block_handler, Bo + RemoveFontWakeup(fpe); + } + ++static uint32_t wrap_time_in_millis(void) ++{ ++ return GetTimeInMillis(); ++} ++ + #ifdef HAS_XFONT2 + static const xfont2_client_funcs_rec xfont2_client_funcs = { + .version = XFONT2_CLIENT_FUNCS_VERSION, +@@ -2482,7 +2487,7 @@ static const xfont2_client_funcs_rec xfont2_client_funcs = { + .get_client_resolutions = get_client_resolutions, + .get_default_point_size = get_default_point_size, + .get_new_font_client_id = get_new_font_client_id, +- .get_time_in_millis = GetTimeInMillis, ++ .get_time_in_millis = wrap_time_in_millis, + .init_fs_handlers = _init_fs_handlers, + .register_fpe_funcs = register_fpe_funcs, + .remove_fs_handlers = _remove_fs_handlers, |