From owner-freebsd-chat Tue Apr 30 6:23:15 2002 Delivered-To: freebsd-chat@freebsd.org Received: from web20405.mail.yahoo.com (web20405.mail.yahoo.com [216.136.226.124]) by hub.freebsd.org (Postfix) with SMTP id D0D1137B41D for ; Tue, 30 Apr 2002 06:23:12 -0700 (PDT) Message-ID: <20020430132306.1282.qmail@web20405.mail.yahoo.com> Received: from [62.90.92.58] by web20405.mail.yahoo.com via HTTP; Tue, 30 Apr 2002 06:23:06 PDT Date: Tue, 30 Apr 2002 06:23:06 -0700 (PDT) From: Francis Jordan Subject: strange gcc warning To: freebsd-chat@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This may seem like a newbie question, but still -- why does the following produce a warning: void foo(const int b[8][8]) { } int main(int argc, char *argv[]) { int b[8][8]; foo(b); return 0; } test.c:11: warning: passing arg 1 of `foo' from incompatible pointer type Thanks FRJ __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message