Hacker News new | past | comments | ask | show | jobs | submit login

-Wno-foo is turning off those warnings, not turning them on.





Wow, thanks. The gcc documentation appears to have a problem.

It lists -Wreorder as a warning, and says it's enabled by -Wall . It lists -Wno-pessimizing-move as a warning, and says it's enabled by -Wall .

I think the documentation should be edited to not list -Wno-pessimizing-move , and instead list -Wpessimizing-move .

https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/C_002b_002b-Dia...




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

Search: