-
Notifications
You must be signed in to change notification settings - Fork 470
Problem compiling on clang 14 #1302
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
Comments
If anyone using clang 14 able to reproduce the error, or build successfully (meaning I got it wrong and need to look more!!) ? |
Looks like this has been fixed in master with a new SDL submodule (release-2.26.4 vs a1e992b). Would someone be so kind to tag a release? |
Was getting compile errors for SDL2. See Rust-SDL2/rust-sdl2#1302
Ping: Any comment on the possibility of a release that includes the fix that seems to be in HEAD? |
Reference the master commit in your Cargo.toml until a new release is done:
I hope you understand. |
I am one crate removed from it, but I think I can do a patch for dependencies and so will try that. I commiserate on the maintenance and understand! |
I'm having the same problem, anything I can do to help out to move forward to a release? |
I am unable to compile sdl2-sys v0.35.2 on my macos. With a colleague we have investigated quite a bit why his compiles and my doesn't and we think it's a difference in behaviour in the
-Wdeclaration-after-statement
and expecially the-Werror,-Wdeclaration-after-statement
command line option to clang between clang 13 and clang 14, leading to this errorerror: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
on clang 14, but compiling fine on clang 13.
I am not sure if this will need an issue in the code SDL lib repo, this one, or both....guidance welcome!
The text was updated successfully, but these errors were encountered: