dev-ml/labltk: fix -Wincompatible-pointer-types

Closes: https://bugs.gentoo.org/919294
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2024-06-04 20:24:21 +02:00
parent d14bd55fc6
commit c2d33a9ed8
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
--- a/support/cltkVar.c 2024-06-04 20:18:35.940518270 +0200
+++ b/support/cltkVar.c 2024-06-04 20:18:49.456367424 +0200
@@ -75,7 +75,7 @@
Tcl_Interp *interp, char *part1, char *part2, int flags));
*/
static char * tracevar(ClientData clientdata, Tcl_Interp *interp,
- char *name1, char *name2, int flags)
+ const char *name1, const char *name2, int flags)
/* interp -> Interpreter containing variable. */
/* name1 -> Name of variable. */
/* name2 -> Second part of variable name. */

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,6 +25,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-8.06.9-configure-clang16.patch
"${FILESDIR}"/${P}-shuffle.patch
"${FILESDIR}"/${P}-c2x.patch
"${FILESDIR}"/${P}-c99.patch
)
src_prepare() {