-
Notifications
You must be signed in to change notification settings - Fork 537
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 clang vla warning #2736
base: main
Are you sure you want to change the base?
Fix clang vla warning #2736
Conversation
✅ Deploy Preview for pytorch-fbgemm-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks for working on this @cyyever. I'm still seeing the issue even when manually adding add the flags this PR implements (using clang/clang++ 18.1.8). Do you know if the fixs works for clang 18? |
@jamesETsmith Can you help check |
@cyyever great idea, it looks like the flag is there (and in stdout during compilation): From
From
|
@jamesETsmith That flag is overwritten by '-Wall -Wextra -Werror' later. That means there is a flag order problem. Check where you added the flag and move it behind Wall |
Thanks for the heads up @cyyever. I'm building FBGEMM through PyTorch and it doesn't seem like I can change the ordering of the CMAKE_CXX_FLAGS from the command line without modifying the cmake source like you have for FBGEMM or PyTorch. I replicated the changes from your pytorch PR and that seems to have worked. Thanks for the work on this, I hope it gets merged. |
@q10 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Fix the error