From owner-freebsd-arch Mon Nov 29 11:33:38 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 9AFB914F37 for ; Mon, 29 Nov 1999 11:33:36 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id UAA23000 for ; Mon, 29 Nov 1999 20:33:35 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id UAA65695 for freebsd-arch@freebsd.org; Mon, 29 Nov 1999 20:33:35 +0100 (MET) Received: from jade.chc-chimes.com (jade.chc-chimes.com [216.28.46.6]) by hub.freebsd.org (Postfix) with ESMTP id 52D4815376 for ; Mon, 29 Nov 1999 11:33:29 -0800 (PST) (envelope-from billf@chc-chimes.com) Received: by jade.chc-chimes.com (Postfix, from userid 1001) id DF2471C4D; Mon, 29 Nov 1999 13:34:34 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by jade.chc-chimes.com (Postfix) with ESMTP id D138C3836; Mon, 29 Nov 1999 13:34:34 -0500 (EST) Date: Mon, 29 Nov 1999 13:34:34 -0500 (EST) From: Bill Fumerola To: Matthew Dillon Cc: Martin Cracauer , arch@freebsd.org Subject: Re: What to do about "subscript has type `char'" warnings? In-Reply-To: <199911291930.LAA08250@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 29 Nov 1999, Matthew Dillon wrote: > :b) or cast > : char *s = syntax[2]; > : string[(int)*s]; I would suggest using this option and I will be using this in some of my -Wall fixes I have in the pipeline. -- - bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp - - ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message