From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH]-Wstrict-prototypes on SCM_FUNC_CAST_ARBITRARY_ARGS Date: Sat, 20 Dec 2003 05:18:33 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87llp8zkdy.fsf@zip.com.au> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071862181 11107 80.91.224.253 (19 Dec 2003 19:29:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2003 19:29:41 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Dec 19 20:29:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AXQJe-0001QB-00 for ; Fri, 19 Dec 2003 20:29:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXRG0-0002Ll-QC for guile-devel@m.gmane.org; Fri, 19 Dec 2003 15:29:56 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AXR8T-0006V2-IB for guile-devel@gnu.org; Fri, 19 Dec 2003 15:22:09 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AXR7Y-0005WL-9I for guile-devel@gnu.org; Fri, 19 Dec 2003 15:21:44 -0500 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXR6o-0004ew-QO; Fri, 19 Dec 2003 15:20:27 -0500 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id hBJJIvno022571; Sat, 20 Dec 2003 06:18:57 +1100 Original-Received: from localhost (ppp130.dyn11.pacific.net.au [61.8.11.130]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id hBJJItxs026494; Sat, 20 Dec 2003 06:18:56 +1100 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1AXQ8w-0000V8-00; Sat, 20 Dec 2003 05:18:34 +1000 Original-To: Stephen Compall Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3122 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3122 Stephen Compall writes: > > I recently added -Wstrict-prototypes to my C warning list. However, > this gives a warning for GCC 3.3.2 (at least) for both 1.6.x and HEAD, > whenever you compile the output of SCM_DEFINE et al. Do you also get a warning from the prototypes for scm_c_define_subr and friends (out of libguile.h)? > I fixed it by > seding 's,SCM (\*)(),SCM (\*)(void),' or something like that on the > output of guile-snarf, as strict C prototypes require (void) rather > than (), tested it with one of my native modules, and hope this will > cause no major problems in guile at large. I wonder why a cast is needed at all. I might have thought a parameter "SCM (*)()" would be happly passed a function "SCM foo (SCM x, SCM y)" or whatever. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel