From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Unnecessary warnings Date: Sun, 24 Sep 2006 08:42:07 -0700 Organization: FSF Message-ID: <4516A74F.5080101@gnu.org> Reply-To: bkorb@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159112538 8833 80.91.229.2 (24 Sep 2006 15:42:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2006 15:42:18 +0000 (UTC) Cc: Harlan Stenn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Sep 24 17:42:16 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRW7U-0002p4-35 for guile-devel@m.gmane.org; Sun, 24 Sep 2006 17:42:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRW7T-0004CV-LY for guile-devel@m.gmane.org; Sun, 24 Sep 2006 11:42:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRW7O-00048c-Rd for guile-devel@gnu.org; Sun, 24 Sep 2006 11:42:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRW7N-000468-Ey for guile-devel@gnu.org; Sun, 24 Sep 2006 11:42:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRW7N-000465-86 for guile-devel@gnu.org; Sun, 24 Sep 2006 11:42:09 -0400 Original-Received: from [207.115.20.70] (helo=flpi101.sbcis.sbc.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRWBa-0000si-9x for guile-devel@gnu.org; Sun, 24 Sep 2006 11:46:30 -0400 X-ORBL: [75.0.187.122] Original-Received: from [192.168.0.2] (adsl-75-0-187-122.dsl.pltn13.sbcglobal.net [75.0.187.122]) by flpi101.sbcis.sbc.com (8.13.7 out spool5000 dk/8.13.7) with ESMTP id k8OFfeR3023135; Sun, 24 Sep 2006 08:41:40 -0700 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en Original-To: guile-devel@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6111 Archived-At: /usr/local/gnu/include/libguile/smob.h:149: warning: declaration of 'free' shadows a global declaration /usr/local/gnu/include/libguile/filesys.h:75: warning: declaration of 'dirname' shadows a global declaration /usr/local/gnu/include/libguile/ports.h:233: warning: declaration of 'write' shadows a global declaration /usr/local/gnu/include/libguile/ports.h:254: warning: declaration of 'truncate' shadows a global declaration /usr/local/gnu/include/libguile/numbers.h:258: warning: declaration of 'div' shadows a global declaration /usr/local/gnu/include/libguile/stime.h:55: warning: declaration of 'time' shadows a global declaration /usr/include/iso/time_iso.h:91: warning: shadowed declaration is here /usr/local/gnu/include/libguile/stime.h:56: warning: declaration of 'time' shadows a global declaration /usr/include/iso/time_iso.h:91: warning: shadowed declaration is here /usr/local/gnu/include/libguile/stime.h:60: warning: declaration of 'stime' shadows a global declaration These are all due to argument names in prototype declarations. Please suffix the names with "_arg" or something. Meanwhile, compilations will choke with -Wshadow. /usr/local/gnu/include/libguile/gsubr.h:65: warning: function declaration isn't a prototype /usr/local/gnu/include/libguile/gsubr.h:68: warning: function declaration isn't a prototype /usr/local/gnu/include/libguile/gsubr.h:70: warning: function declaration isn't a prototype /usr/local/gnu/include/libguile/gsubr.h:73: warning: function declaration isn't a prototype /usr/local/gnu/include/libguile/gsubr.h:81: warning: function declaration isn't a prototype /usr/local/gnu/include/libguile/gsubr.h:86: warning: function declaration isn't a prototype Here, the complaint is about stuff like this: extern SCM scm_c_make_gsubr (const char *name, int req, int opt, int rst, SCM (*fcn) ()); where "fcn" does not look like a prototype. It needs "(void)" as the argument list. Better is to: typedef SCM (scm_gsubr_callout_t) __P((void)); and use "scm_gsubr_callout_t *" in the argument list. This works with K&R, by the way. Thanks - Bruce _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel