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


"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

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