From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 25 02:22:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8182816A4E1 for ; Tue, 25 Jul 2006 02:22:21 +0000 (UTC) (envelope-from mnorwick@centurytel.net) Received: from msa1-mx.centurytel.net (msa1-mx.centurytel.net [209.142.136.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id C71D343D8C for ; Tue, 25 Jul 2006 02:22:10 +0000 (GMT) (envelope-from mnorwick@centurytel.net) Received: from [192.168.1.15] (207-118-202-194.dyn.centurytel.net [207.118.202.194]) by msa1-mx.centurytel.net (8.13.6/8.13.6) with ESMTP id k6P2M8GL003616 for ; Mon, 24 Jul 2006 21:22:09 -0500 Message-ID: <44C58051.4000307@centurytel.net> Date: Mon, 24 Jul 2006 21:22:09 -0500 From: "Michael D. Norwick" User-Agent: Debian Thunderbird 1.0.2 (X11/20060423) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <44C56443.50106@centurytel.net> <20060725005534.GA7484@gothmog.pc> In-Reply-To: <20060725005534.GA7484@gothmog.pc> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Just a question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 02:22:21 -0000 Giorgos Keramidas wrote: >On 2006-07-24 19:22, "Michael D. Norwick" wrote: > > >>The following warnings were generated by a GhostScript build during >>'portmanager -u': >> >>./src/gsfunc0.c: In function `function_Sd_enum_ptrs': >>./src/gsfunc0.c:37: warning: traditional C rejects ISO C style function >>definitions >>./src/gsfunc0.c: In function `function_Sd_reloc_ptrs': >>./src/gsfunc0.c:48: warning: traditional C rejects ISO C style function >>definitions >>./src/gsfunc0.c: In function `fn_gets_1': >>./src/gsfunc0.c:74: warning: traditional C rejects ISO C style function >>definitions >>./src/gsfunc0.c: In function `fn_gets_2': >> >>This is just a small clip of the warning when building one .c file. The >>build generated many of these warnings then aborted for reasons unknown >>to me right now. I just wanted to know what this particular warning is >>in reference to. Using GCC 3.4.4 (20050518). >> >> > >This is the warning enabled by -Wtraditional, and you get it for all >functions that have full prototypes, i.e.: > ># giorgos@gothmog:/tmp/foo$ cc -Wtraditional foo.c ># foo.c: In function `foo': ># foo.c:4: warning: traditional C rejects ISO C style function definitions ># foo.c: In function `main': ># foo.c:10: warning: traditional C rejects ISO C style function definitions ># giorgos@gothmog:/tmp/foo$ cc -Wtraditional bar.c ># giorgos@gothmog:/tmp/foo$ diff -u bar.c foo.c ># --- bar.c Tue Jul 25 03:53:59 2006 ># +++ foo.c Tue Jul 25 03:52:13 2006 ># @@ -1,12 +1,12 @@ ># #include ># ># -int foo () ># +int foo (void) ># { ># printf("foo\n"); ># return 0; ># } ># ># -int main() ># +int main(void) ># { ># return foo(); ># } ># giorgos@gothmog:/tmp/foo$ > >Either the original GhostScript sources or the port uses -Wtraditional... > > > > > The compiler complaints I neglected to post were about #pragma's in 'traditional' C in numerous header files in /usr/src so this make sense. GhostScript and it's dependencies compiled and installed but now I have to wonder if the warnings will affect the funtionality. What do I put in /etc/make.conf to keep this from happening on the next upgrade? The GhostScript source I used was from the ports tree. Thank You, Michael