Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust would warn you of an unused variable: "warning: value assigned to `psize` is never read"


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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: