Skip to content

tools/lemon.c: fix gcc15/C23 build.#96

Open
samaingw wants to merge 1 commit intothreerings:masterfrom
samaingw:fix_gcc15_build
Open

tools/lemon.c: fix gcc15/C23 build.#96
samaingw wants to merge 1 commit intothreerings:masterfrom
samaingw:fix_gcc15_build

Conversation

@samaingw
Copy link
Copy Markdown

Alpine Linux contributor here, upstreaming gcc15 fixes.

In gcc15 the default standard used is C23.
In C23 declaring foo() means foo(void). Previously it acted as a wildcard for arg list. This commit fixes function declarations with empty arg list in lemon.

Relevant doc: https://gcc.gnu.org/gcc-15/porting_to.html

Related downstream MR: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/90277

In gcc15 the default standard used is C23.
In C23 declaring foo() means foo(void). Previously it acted as a wildcard for arg list.
This commit fixes function declarations with empty arg list in lemon.
Relevant doc: https://gcc.gnu.org/gcc-15/porting_to.html
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