Skip to content

Fix c23 build error from nographics.h - #240

Merged
jrincayc merged 1 commit into
jrincayc:masterfrom
benjaminpjones:nop-fix
Aug 12, 2026
Merged

Fix c23 build error from nographics.h#240
jrincayc merged 1 commit into
jrincayc:masterfrom
benjaminpjones:nop-fix

Conversation

@benjaminpjones

@benjaminpjones benjaminpjones commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

#239

c23 no longer allows functions with no prototype, and treats an empty parameter list as (void). This broke some macro definitions where functions with arguments were aliased to nop, a function without args.

This PR updates the aliases to function-like macros, and ensures nop receives 0 arguments.

Testing

This PR addresses the nographics path.

./configure --disable-wx
make

"too many arguments to function call, expected 0, have 4" error is gone

c23 no longer allows functions with no prototype, and treats an empty
parameter list as (void).  This broke some macro definitions where
functions with arguments were aliased to nop, a function without args.

This commit updates the aliases to function-like macros, and ensures
nop receives 0 arguments.

@jrincayc jrincayc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and approve.

@jrincayc
jrincayc merged commit 7676257 into jrincayc:master Aug 12, 2026
1 check passed
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.

2 participants