Skip to content

added -std=gnu89 for ANSI C standard#23

Merged
chkwon merged 3 commits intomasterfrom
mac_fix
Mar 16, 2025
Merged

added -std=gnu89 for ANSI C standard#23
chkwon merged 3 commits intomasterfrom
mac_fix

Conversation

@chkwon
Copy link
Copy Markdown
Owner

@chkwon chkwon commented Mar 16, 2025

Concorde was written in ANSI C. In Line 873 of configure file in the Concorde distribution:

main(){return(0);}

which is part of a test program during configure. In modern C, especially with gcc in recent macOS, such typeless main functions are prohibited.

To allow this, this PR added a CFLAG of std=gnu89.

@chkwon
Copy link
Copy Markdown
Owner Author

chkwon commented Mar 16, 2025

solves #22

@chkwon chkwon merged commit f5440b3 into master Mar 16, 2025
3 of 4 checks 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.

1 participant