4 ms·
>I compiled the C++ examples with godbolt with “x86-64 gcc (trunk)” and “-Wall -Wextra -Wno-pessimizing-move -Wno-redundant-move”. Edit: everything below is in
by Thorrez 2y ago
>I compiled the C++ examples with godbolt with “x86-64 gcc (trunk)” and “-Wall -Wextra -Wno-pessimizing-move -Wno-redundant-move”.
Edit: everything below is incorrect.
-Wno-pessimizing-move is automatically enabled by -Wall, so doesn't need to be specified manually. -Wno-redundant-move is automatically enabled by -Wextra, so doesn't need to be specified manually.
- quuxplusone 2y ago-Wno-foo is turning off those warnings, not turning them on.
- Thorrez 2y agoWow, 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-Dialect-Options.html https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/C_002b_002b-Dia...