Date: Tue, 3 Oct 2000 15:46:36 -0400 (EDT) From: Larry Lile <lile@stdio.com> To: hackers@freebsd.org Subject: Question about -Wchar-subscripts Message-ID: <Pine.BSF.4.05.10010031536460.75472-100000@heathers.stdio.com>
next in thread | raw e-mail | index | archive | help
I was just asked a question that I really don't know what the "correct" answer is, so here it is. ...we get scores of warnings about using characters as subscripts to an array (-Wchar-subscripts), which generates so much noise as to mask real warnings burried within. Therefore, I would like to suppress this warning unless someone can explain why using a char as an array subscript is in any way an illegitimate thing to do. As far as I can tell, getting rid of the warning by changing the code would require adding a large number of frivolous casts to scores of source files... So why is using a "char" as an array subscript wrong? I had always avoided it because the compiler complained and that was good enough for me. Just curious. -- Larry Lile lile@stdio.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10010031536460.75472-100000>