gcc warning
Gabriel Dos Reis
gdr@codesourcery.com
Tue Oct 31 08:07:00 GMT 2000
"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
More information about the Gcc
mailing list