From owner-freebsd-current Thu Aug 19 3:40:43 1999 Delivered-To: freebsd-current@freebsd.org Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by hub.freebsd.org (Postfix) with ESMTP id 229B415099 for ; Thu, 19 Aug 1999 03:40:22 -0700 (PDT) (envelope-from netchild@Vodix.CS.Uni-SB.de) Received: from work.net.local (maxtnt-209.telip.uni-sb.de [134.96.71.80]) by uni-sb.de (8.9.3/1999070600) with ESMTP id MAA11371 for ; Thu, 19 Aug 1999 12:40:05 +0200 (CEST) X-Authentication-Warning: uni-sb.de: Host maxtnt-209.telip.uni-sb.de [134.96.71.80] claimed to be work.net.local Received: from Vodix.CS.Uni-SB.de (localhost.net.local [127.0.0.1]) by work.net.local (8.9.3/8.9.3) with ESMTP id MAA00975 for ; Thu, 19 Aug 1999 12:39:53 +0200 (CEST) (envelope-from netchild@Vodix.CS.Uni-SB.de) Message-Id: <199908191039.MAA00975@work.net.local> Date: Thu, 19 Aug 1999 12:39:52 +0200 (CEST) From: A.Leidinger@WJPServer.CS.Uni-SB.de Subject: Bug with malloc_options To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, -current from ~3 days ago. from malloc(3): ---snip--- To specify in the source that a program does no return value checking on calls to these functions: extern char *malloc_options; malloc_options = "X"; ---snip--- my source: ---snip--- #include #include #include /* malloc() */ #include /* offsetof(...) */ #include /* get?id() */ #include #include #if defined(__FreeBSD__) && defined(DEBUG) extern char *malloc_options; /* Line 22 */ malloc_options = "JX"; /* Line 23 */ #endif ---snip--- The output of gcc: ---snip--- 23: warning: type defaults to `int' in declaration of `malloc_options' 23: conflicting types for `malloc_options' 22: previous declaration of `malloc_options' 23: warning: initialization makes integer from pointer without a cast 23: warning: data definition has no type or storage class ---snip--- The output of gcc -E: ---snip--- extern char *malloc_options; malloc_options = "JX"; ---snip--- Should I go to bed or is this a bug in FreeBSD? Bye, Alexander. -- 99% of lawyers give the rest a bad name. http://netchild.home.pages.de A.Leidinger+Home @ WJPServer.CS.Uni-SB.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message