Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jerry James
f6a65f282e Remove incompatible-pointer patch for F40 2024-03-18 15:48:10 -06:00
2 changed files with 0 additions and 27 deletions

View file

@ -1,25 +0,0 @@
Fixes this error:
../../src.x11/xcmds.c: In function FunChangeList:
../../src.x11/xcmds.c:715:36: error: passing argument 2 of XawListChange from incompatible pointer type [-Wincompatible-pointer-types]
715 | XawListChange( arg->sel->list, (const char **)text, 0, 0, True );
| ^~~~~~~~~~~~~~~~~~~
| |
| const char **
In file included from ../../src.x11/utils.h:120,
from ../../src.x11/xcmds.c:9:
/usr/include/X11/Xaw/List.h:170:26: note: expected char ** but argument is of type const char **
170 | String *list,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
--- src.x11/xcmds.c.orig 2024-02-07 16:26:14.000000000 -0700
+++ src.x11/xcmds.c 2024-03-15 16:59:24.433308375 -0600
@@ -712,7 +712,7 @@ static Boolean FunChangeList (
text[i] = 0;
/* change list */
- XawListChange( arg->sel->list, (const char **)text, 0, 0, True );
+ XawListChange( arg->sel->list, (char **)text, 0, 0, True );
/* clear old text */
for ( i = 0; arg->sel->text[i]; i++ )

View file

@ -18,8 +18,6 @@ Source1: %{name}.desktop
Source2: XGap
# This patch quiets a compiler warning.
Patch0: %{name}-warning.patch
# Fix FTBFS due to an incompatible pointer type
Patch1: %{name}-incompatible-pointer.patch
BuildRequires: desktop-file-utils
BuildRequires: gap-devel