From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stephen Compall Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH]-Wstrict-prototypes on SCM_FUNC_CAST_ARBITRARY_ARGS Date: 20 Dec 2003 17:50:58 -0600 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <87llp8zkdy.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071964925 11911 80.91.224.253 (21 Dec 2003 00:02:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2003 00:02:05 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Dec 21 01:01:57 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 1AXr2j-0007aK-00 for ; Sun, 21 Dec 2003 01:01:57 +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 1AXrxH-0000wH-S2 for guile-devel@m.gmane.org; Sat, 20 Dec 2003 20:00:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AXrx5-0000w1-TV for guile-devel@gnu.org; Sat, 20 Dec 2003 20:00:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AXrwZ-0000kD-3v for guile-devel@gnu.org; Sat, 20 Dec 2003 20:00:10 -0500 Original-Received: from [192.195.228.35] (helo=csserver.evansville.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AXrwY-0000k6-QF for guile-devel@gnu.org; Sat, 20 Dec 2003 19:59:38 -0500 Original-Received: from csserver.evansville.edu (localhost.localdomain [127.0.0.1]) by csserver.evansville.edu (8.12.8/8.12.8) with ESMTP id hBKNp5vS021980; Sat, 20 Dec 2003 17:51:05 -0600 Original-Received: (from sc87@localhost) by csserver.evansville.edu (8.12.8/8.12.8/Submit) id hBKNowpb021933; Sat, 20 Dec 2003 17:50:58 -0600 X-Authentication-Warning: csserver.evansville.edu: sc87 set sender to s11@member.fsf.org using -f Original-To: Kevin Ryde In-Reply-To: <87llp8zkdy.fsf@zip.com.au> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:3127 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3127 Kevin Ryde writes: > Do you also get a warning from the prototypes for scm_c_define_subr > and friends (out of libguile.h)? I added -Wstrict-prototypes to the CFLAGS for my own package, not Guile itself. GCC, by default, does not produce warnings in system headers (i.e. libguile.h & depends). If those functions have such parameter types, though, missing `void' where it should be, then you would get warnings there while compiling Guile, I should think. Then again, the warnings I turn on would probably complain all over the place. > 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. I believe this, however, would eliminate almost all the benefit of type-checking of function pointers in the first place. -- Stephen Compall or s11 or sirian "But what we need to know is, do people want nasally-insertable computers?" warfare Ft. Bragg Skipjack enforcers Medco SWAT Kennedy mania ARPA kilo class encryption Watergate Defcon Project Monarch Ermes _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel