On 3/25/20 8:52 AM, Patrick Palka wrote:
This fixes a false-positive warning from -Wduplicate-cond in the presence of an
if-statement with a non-empty init-statement. Precisely determining whether a
non-empty init-statement has side effects seems tricky and error-prone, so this > patch takes
On Wed, 25 Mar 2020, Marek Polacek wrote:
> On Wed, Mar 25, 2020 at 08:52:47AM -0400, Patrick Palka via Gcc-patches wrote:
> > This fixes a false-positive warning from -Wduplicate-cond in the presence
> > of an
> > if-statement with a non-empty init-statement. Precisely determining
> > whether
On Wed, Mar 25, 2020 at 08:52:47AM -0400, Patrick Palka via Gcc-patches wrote:
> This fixes a false-positive warning from -Wduplicate-cond in the presence of
> an
> if-statement with a non-empty init-statement. Precisely determining whether a
> non-empty init-statement has side effects seems
This fixes a false-positive warning from -Wduplicate-cond in the presence of an
if-statement with a non-empty init-statement. Precisely determining whether a
non-empty init-statement has side effects seems tricky and error-prone, so this
patch takes the route of unconditionally invalidating the