From owner-freebsd-bugs Mon Aug 21 22:10: 8 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4389437B424 for ; Mon, 21 Aug 2000 22:10:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA58012; Mon, 21 Aug 2000 22:10:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 21 Aug 2000 22:10:07 -0700 (PDT) Message-Id: <200008220510.WAA58012@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mark.Andrews@nominum.com Subject: Re: gnu/20767: gcc const produces invalid warning Reply-To: Mark.Andrews@nominum.com Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR gnu/20767; it has been noted by GNATS. From: Mark.Andrews@nominum.com To: "Philip M. Gollucci" Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: gnu/20767: gcc const produces invalid warning Date: Tue, 22 Aug 2000 15:03:17 +1000 > Acutally shouldn't it.... > Don't you want *argv ? No. Remove all the consts and it is clearer. e.g. f(char **args); > as just argv implies the array of command line > arguments instead of any single character string ! > > I could be wrong, if you do use the * it works fine with no warning and > -Wall option as well. > -- Mark Andrews, Nominum Inc. 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews@nominum.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message