From owner-freebsd-current Mon Feb 3 20:24:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D942137B434 for ; Mon, 3 Feb 2003 20:24:18 -0800 (PST) Received: from colnta.issci.ca (mail.acns.ab.ca [142.179.151.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F0BD43F93 for ; Mon, 3 Feb 2003 20:24:17 -0800 (PST) (envelope-from davidc@colnta.issci.ca) Received: from colnta.issci.ca (localhost [127.0.0.1]) by colnta.issci.ca (8.12.6/8.12.6) with ESMTP id h144OBAM032294 for ; Mon, 3 Feb 2003 21:24:11 -0700 (MST) (envelope-from davidc@colnta.issci.ca) Received: (from davidc@localhost) by colnta.issci.ca (8.12.6/8.12.6/Submit) id h144OBM9032293 for current@freebsd.org; Mon, 3 Feb 2003 21:24:11 -0700 (MST) Date: Mon, 3 Feb 2003 21:24:10 -0700 From: Chad David To: current@freebsd.org Subject: minor yacc warnings Message-ID: <20030204042410.GA31903@colnta.acns.ab.ca> Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline We are having minor problems with a newer gcc generating warnings for yacc due to yyrcsid not being used. Does anyone object to the following patch to skeleton.c or have a better way of handling this? -Dlint causes other problems. Thanks. -- Chad David davidc@issci.ca www.FreeBSD.org davidc@freebsd.org ISSci Inc. Calgary, Alberta Canada --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="skel.diff" Index: skeleton.c =================================================================== RCS file: /mnt1/ncvs/src/usr.bin/yacc/skeleton.c,v retrieving revision 1.34 diff -u -d -r1.34 skeleton.c --- skeleton.c 9 Apr 2002 11:39:05 -0000 1.34 +++ skeleton.c 4 Feb 2003 04:10:14 -0000 @@ -60,8 +60,9 @@ const char *banner[] = { "#ifndef lint", + "#include ", "static char const ", - "yyrcsid[] = \"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.34 2002/04/09 11:39:05 ru Exp $\";", + "yyrcsid[] __unused = \"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.34 2002/04/09 11:39:05 ru Exp $\";", "#endif", "#include ", "#define YYBYACC 1", --y0ulUmNC+osPPQO6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message