Skip to content

fix: added explicit int to main() in ncurses check#106

Closed
adtyn-0 wants to merge 1 commit intomirror:masterfrom
adtyn-0:ncurses-check-fix
Closed

fix: added explicit int to main() in ncurses check#106
adtyn-0 wants to merge 1 commit intomirror:masterfrom
adtyn-0:ncurses-check-fix

Conversation

@adtyn-0
Copy link
Copy Markdown

@adtyn-0 adtyn-0 commented Oct 6, 2025

Fixes ncurses detection failure during make menuconfig on modern GCC.

check-lxdialog.sh used main() without an explicit return type.
Recent GCC versions treat implicit int as an error, causing the ncurses check to fail even when libraries are present.

This patch declares int main() instead, restoring compatibility.

This issue has been discussed upstream:

Multiple users have suggested fixes; this is a minimal tested change that works on current compilers.

@adtyn-0 adtyn-0 closed this Dec 12, 2025
@adtyn-0 adtyn-0 deleted the ncurses-check-fix branch December 12, 2025 13:02
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