This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc warning
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: gcc warning
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 31 Oct 2000 17:07:39 +0100
- Cc: aoliva at redhat dot com, jching at flex dot com, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200010311512.KAA24109@caip.rutgers.edu>
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
| > From: Alexandre Oliva <aoliva@redhat.com>
| >
| > On Oct 31, 2000, Jimen Ching <jching@flex.com> wrote:
| >
| > > I got this warning with latest CVS. How do I fix my code so it does not
| > > appear?
| > >
| > > ../vbs/src/vbs.cc:76: warning: string length `932' is greater than the
| > > minimum length `509' ISO C89 is required to support
| >
| > Use shorter literal strings.
|
| Are the minimum supported string lengths in C++ the same as in C?
The wording for compliance is different in C++.
Annexe B (informative)
[...]
2 The limits may constrain quantities that include those described
below or others. The bracketed number following each quantity is
recommended as the minimum for that quantity. However, these
quantities are *only guidelines and do not determine compliance.*
(emphasis is mine)
[...]
-- Characters in a character string literal or wide string literal
(after concatenation) [65 536]
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com