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: use platform dependant build flags #2

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

MikeJerred
Copy link
Contributor

Compiling on Windows fails currently because the flag -Wno-unused-parameter is only valid for gcc, not for MSVC.
This PR uses the /wd4100 flag instead when compiling on Windows.

@clason
Copy link

clason commented Apr 18, 2024

These bindings are autogenerated; please contribute improvements upstream (treesitter/treesitter).

@clason clason closed this Apr 18, 2024
@ObserverOfTime
Copy link
Member

But the warning flag is not in the upstream bindings since it's not usually needed.

@clason
Copy link

clason commented Apr 18, 2024

Then why is this flag here? What's special about this parser so that it and no others requires the flag?

@ObserverOfTime
Copy link
Member

The stub scanner functions that don't use the parameters.

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
@ObserverOfTime ObserverOfTime merged commit 9ab738d into tree-sitter-grammars:master Apr 26, 2024
3 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.

3 participants