Skip to content

Commit

Permalink
build: resolve compile error under gcc-14
Browse files Browse the repository at this point in the history
xcmds.c: In function "FunChangeList":
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 );
  • Loading branch information
jengelh committed Aug 21, 2024
1 parent ac9c122 commit 0c83898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.x11/xcmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, (String *)text, 0, 0, True );

/* clear old text */
for ( i = 0; arg->sel->text[i]; i++ )
Expand Down

0 comments on commit 0c83898

Please sign in to comment.