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

clang -nostdinc generates spurious unuused command line argument warnings #368850

Open
yshui opened this issue Dec 28, 2024 · 0 comments
Open

clang -nostdinc generates spurious unuused command line argument warnings #368850

yshui opened this issue Dec 28, 2024 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@yshui
Copy link
Contributor

yshui commented Dec 28, 2024

commit 7047ba9 removed a clang patch and uses the -nostdlibinc command line flag instead. this is mostly fine, and unnoticeable from the user's perspective.

except when the user passes -nostdinc also. without this change, clang won't complain; but now clang prints:

clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]

this breaks packages that are built with -Werror, such as the linux kernel.

@yshui yshui added the 0.kind: bug Something is broken label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant