Re: -flto and -Werror

2021-05-04 Thread Martin Sebor via Gcc
On 5/4/21 6:39 AM, Matthias Klose wrote: Using -flto exposes some new warnings in code, as seen in the both build logs below, for upstream elfutils and systemd. I have seen others. These upstreams enable -Werror by default, but probably don't see these warnings turning to errors themself, becau

Re: -flto and -Werror

2021-05-04 Thread David Brown
On 04/05/2021 14:39, Matthias Klose wrote: > Using -flto exposes some new warnings in code, as seen in the both build logs > below, for upstream elfutils and systemd. I have seen others. These > upstreams > enable -Werror by default, but probably don't see these warnings turning to > errors them

-flto and -Werror

2021-05-04 Thread Matthias Klose
Using -flto exposes some new warnings in code, as seen in the both build logs below, for upstream elfutils and systemd. I have seen others. These upstreams enable -Werror by default, but probably don't see these warnings turning to errors themself, because the LTO flags are usually injected by th