Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2003 04:10:20 -0800 (PST)
From:      David Malone <dwmalone@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/47949: gcc 3.2.1 / strcasecmp() weirdness
Message-ID:  <200302051210.h15CAKDK081743@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/47949; it has been noted by GNATS.

From: David Malone <dwmalone@maths.tcd.ie>
To: Edwin Groothuis <edwin@mavetju.org>
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 <string.h>" 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302051210.h15CAKDK081743>