From owner-freebsd-bugs Mon Aug 21 20:20: 4 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 03DDE37B423 for ; Mon, 21 Aug 2000 20:20:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA43951; Mon, 21 Aug 2000 20:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 21 Aug 2000 20:20:02 -0700 (PDT) Message-Id: <200008220320.UAA43951@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Wollman Subject: gnu/20767: gcc const produces invalid warning Reply-To: Garrett Wollman 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: Garrett Wollman To: marka@nominum.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: gnu/20767: gcc const produces invalid warning Date: Mon, 21 Aug 2000 23:15:43 -0400 (EDT) < gcc incorrectly reports 'incompatible pointer type' when function > is declared with 'const pointer to const pointer' arguement and is > just passed pointer to pointer. The code is in error, and the warning is in fact correct. The type `const foo * const *' is not compatible with `foo **'. Only the outermost qualifier participates in this form of promotion. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message