Re: [PATCH v2] trace2: refactor to avoid gcc warning under -O3
- From
- Jeff Hostetler <git@jeffhostetler.com>
- Date
- May 11, 2021, 16:40 UTC
- Message-ID
- <c595d021-5fc2-ded7-d462-51ce7495739b@jeffhostetler.com>
- In-Reply-To
- <patch-1.1-782555daade-20210511T130231Z-avarab@gmail.com>
On 5/11/21 9:04 AM, Ævar Arnfjörð Bjarmason wrote:
> Refactor tr2_dst_try_uds_connect() to avoid a gcc warning[1] that > appears under -O3 (but not -O2). This makes the build pass under > DEVELOPER=1 without needing a DEVOPTS=no-error. >
...
I suppose if we really need to paper around a compiler bug, then this fix LGTM.
Thanks, Jeff