Skip to content

gcc 15: fix listElementDelete prototype definition#23

Open
cscd98 wants to merge 1 commit into
zear:masterfrom
cscd98:gcc-15-fix
Open

gcc 15: fix listElementDelete prototype definition#23
cscd98 wants to merge 1 commit into
zear:masterfrom
cscd98:gcc-15-fix

Conversation

@cscd98

@cscd98 cscd98 commented Jun 24, 2026

Copy link
Copy Markdown

Fix compiling under GCC 15.

Issue:

deps/libShake/src/common/helpers.c:19:14: error: conflicting types for ‘listElementDelete’; have ‘ListElement *(ListElement *, ListElement *, void (*)(void *))’
   19 | ListElement *listElementDelete(ListElement *head, ListElement *toDelNode, void(*itemDel)(void *item))
      |              ^~~~~~~~~~~~~~~~~
In file included from deps/libShake/src/common/helpers.c:1:
deps/libShake/src/common/helpers.h:11:14: note: previous declaration of ‘listElementDelete’ with type ‘ListElement *(ListElement *, ListElement *, void (*)(void))’
   11 | ListElement *listElementDelete(ListElement *head, ListElement *toDelNode, void(*itemDel)());

@cscd98 cscd98 changed the title gcc 15: fix prototype definition gcc 15: fix listElementDelete prototype definition Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant