This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc warning


Joe Buck <jbuck@racerx.synopsys.com> writes:

| I wrote:
| > > If you're going to check the string length for standards
| > > conformance, you should use the limit specified in the standard
| > > being checked against.
| 
| Mike Stump writes:
| > There isn't a limit.
| 
| OK, "limit" is not the ideal word.  The idea of this warning seems to
| be to warn the user if a string limit exceeds the required minimum
| supported length according to the standard.

I think Mike's point here (please, correct me if I misrepresent what
you intended) is that as far as C++ is concernced there is no such
thing as "required minimum supported length according to the standard".

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]