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

warning: argument unused during compilation: '-D SUPPRESS_WARNINGS' [-Wunused-command-line-argument] #13

Open
nlsandler opened this issue Feb 5, 2024 · 0 comments

Comments

@nlsandler
Copy link
Owner

This occurs when we use Clang 18 on Ubuntu and run the command:
./test_compiler /home/ubuntu/nqcc2/_build/default/bin/main.exe --chapter 10

This is presumably b/c the gcc command is only being used for assembly/linking, not for compilation, but I'd like to understand why that isn't happening with Clang 15 on macOS. Did Clang's handling of this option change?

If so, should avoid including -D SUPPRESS_WARNINGS when none of GCC's inputs are C source files, but this isn't terribly high priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant