unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Stephen Compall <s11@member.fsf.org>
Cc: guile-devel@gnu.org
Subject: Re: [PATCH]-Wstrict-prototypes on SCM_FUNC_CAST_ARBITRARY_ARGS
Date: 20 Dec 2003 17:50:58 -0600	[thread overview]
Message-ID: <xfy8yl7jbfh.fsf@csserver.evansville.edu> (raw)
In-Reply-To: <87llp8zkdy.fsf@zip.com.au>

Kevin Ryde <user42@zip.com.au> 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


  reply	other threads:[~2003-12-20 23:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-02 15:22 [PATCH]-Wstrict-prototypes on SCM_FUNC_CAST_ARBITRARY_ARGS Stephen Compall
2003-12-19 19:18 ` Kevin Ryde
2003-12-20 23:50   ` Stephen Compall [this message]
2003-12-21  0:17     ` Kevin Ryde
2004-02-14  0:17     ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xfy8yl7jbfh.fsf@csserver.evansville.edu \
    --to=s11@member.fsf.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).