[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    Re: [PATCH][RFC] Add a subset of -Warray-bounds warnings to C/C++  front ends
From:       Dirk Mueller <dmuell () gmx ! net>
Date:       2008-04-08 14:35:49
Message-ID: 200804081635.49462.dmuell () gmx ! net
[Download RAW message or body]

On Tuesday 08 April 2008, Simon Baldwin wrote:

> If my reading of the code is correct here, the probable conservative
> course here is to amend the comments to reflect the code, rather than
> the other way round, noting that arrays sized two elements or less have
> this check suppressed.  And maybe add an explicit test case for
> clarity.  The riskier course is to enable the checks for arrays
> dimensioned two and above, and see what happens.  Any preference?

The code should be adjusted to match the comment, I believe. 

Greetings,
Dirk

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic