Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix configure.ac : unused command line argument triggers erros #214

Open
wants to merge 1 commit into
base: gcos4gnucobol-3.x
Choose a base branch
from

Conversation

ddeclerck
Copy link
Contributor

@ddeclerck ddeclerck commented Jan 29, 2025

As mentionned in a previous comment, unused arguments trigger errors in the configure script :

error: argument unused during compilation: '-fstack-clash-protection' [-Werror,-Wunused-command-line-argument]

This makes detection of some features (-fstack-clash-protection on macOS) fail even if they are available.
This is even worst in 4.x (in the yet-to-be-merged batch), as it fails to detect "gcc pointer sign", which causes many testsuite failures.

This PR simply adds -Wno-unused-command-line-argument to the CFLAGS under gcc and Clang (and removes if from the CI workflow). Not sure if this should come earlier in the configure file ?

Should be merged in 4.x once upstream in 3.x.

@ddeclerck ddeclerck requested a review from GitMensch January 29, 2025 14:06
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