From owner-freebsd-bugs Wed Feb 5 4:10:21 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81B5F37B6B5 for ; Wed, 5 Feb 2003 04:10:20 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 318BB43F85 for ; Wed, 5 Feb 2003 04:10:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h15CAKNS081744 for ; Wed, 5 Feb 2003 04:10:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h15CAKDK081743; Wed, 5 Feb 2003 04:10:20 -0800 (PST) Date: Wed, 5 Feb 2003 04:10:20 -0800 (PST) Message-Id: <200302051210.h15CAKDK081743@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David Malone Subject: Re: bin/47949: gcc 3.2.1 / strcasecmp() weirdness Reply-To: David Malone Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/47949; it has been noted by GNATS. From: David Malone To: Edwin Groothuis Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/47949: gcc 3.2.1 / strcasecmp() weirdness Date: Wed, 5 Feb 2003 12:06:05 +0000 On Wed, Feb 05, 2003 at 10:17:34PM +1100, Edwin Groothuis wrote: > I add this line before line 116: > if (strcasecmp("12","11")) printf(""); > > And it compiles without a problem. > > Why oh why? I suspect you're missing a "#include " in the file. I suspect that using an unprototyped function may have the side effect of creating a implicit declaration of it. You probably don't get the same problem with strcmp 'cos it is used elsewhere in the file. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message