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

And so would GCC: warning: variable psize set but not used [-Wunused-but-set-variable]
The fact that the bug slipped through the cracks highlights the importance of sane defaults.
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).