-
Notifications
You must be signed in to change notification settings - Fork 112
Maint/cargo cc werror #1593
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
base: master
Are you sure you want to change the base?
Maint/cargo cc werror #1593
Conversation
If user enables -Dwarnings via RUSTFLAGS also enable -Werror for C code compiled by cargo/build.rs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just always enable them instead of via env? Too annoying during development?
|
||
// If user enables -Dwarnings for rust we also want to enable -Werror for C. | ||
if let Ok(rustflags) = std::env::var("CARGO_ENCODED_RUSTFLAGS") { | ||
for flag in rustflags.split('\x1f') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They like doing things the right way over at rust land.
} | ||
|
||
static uint8_t _salt_root[32] = { | ||
uint8_t _salt_root[32] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove underscore, we normally use it to recognize statics.
Yes, I definitely don't want to fix every single lint before I can test out code. |
No description provided.