Y
Hacker News
new
|
ask
|
show
|
jobs
by
beeb
336 days ago
Rust would warn you of an unused variable: "warning: value assigned to `psize` is never read"
1 comments
bloak
336 days ago
And so would GCC: warning: variable psize set but not used [-Wunused-but-set-variable]
link
beeb
336 days ago
The fact that the bug slipped through the cracks highlights the importance of sane defaults.
link
flohofwoe
336 days ago
The warning is in the -Wall warning set, which tbh should be the bare minimum each C/C++ project enables (along with -Wextra, and -Werror).
link