This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: PATCH: avoid warnings on array[CHAR_CONSTANT]


On Monday, June 9, 2003, at 12:52 PM, Jonathan Lennox wrote:
Eddie Kohler writes:
The following patch avoids the "array subscript has type `char'" warning in
C++ when the subscript is a character constant with value between 0 and
127. This supports the following common usage pattern:

Shouldn't this be based on the target's SCHAR_MAX, instead? GCC supports
platforms with 9-bit bytes.

Hum... Which one?



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