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: Re: Unnecessary warnings Date: Mon, 25 Sep 2006 07:43:50 -0700 Message-ID: <668c430c0609250743y6a5249caqae229d91f6c29ccb@mail.gmail.com> References: <4516A74F.5080101@gnu.org> <87mz8o2w9x.fsf@laas.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1159195518 10949 80.91.229.2 (25 Sep 2006 14:45:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2006 14:45:18 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 25 16:45:14 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 1GRrgc-0003eL-5N for guile-devel@m.gmane.org; Mon, 25 Sep 2006 16:43:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRrgb-0002H6-IL for guile-devel@m.gmane.org; Mon, 25 Sep 2006 10:43:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRrgY-0002Gr-AX for guile-devel@gnu.org; Mon, 25 Sep 2006 10:43:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRrgX-0002Gf-03 for guile-devel@gnu.org; Mon, 25 Sep 2006 10:43:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRrgW-0002Gc-Ra for guile-devel@gnu.org; Mon, 25 Sep 2006 10:43:52 -0400 Original-Received: from [66.249.92.168] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRrkx-0004SQ-AE for guile-devel@gnu.org; Mon, 25 Sep 2006 10:48:27 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 36so517981uga for ; Mon, 25 Sep 2006 07:43:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=NGLJZKvrf0+jNuemKG+3H+CnPpSS3L54Dg3Q0yp3BoiucJ+/Katde2POfpqtXu2S9cMKdKPbuJxtfRTvQIBAI+HdwnXYpDg+akKdyU1eazyddkvvsUPLHDvG6eYCq7wGhfvaDTAU+P3WLBmz5RWt/VpqrrGF+uzZoOEB+o2RfZY= Original-Received: by 10.67.93.6 with SMTP id v6mr3412662ugl; Mon, 25 Sep 2006 07:43:51 -0700 (PDT) Original-Received: by 10.67.95.17 with HTTP; Mon, 25 Sep 2006 07:43:50 -0700 (PDT) Original-To: bkorb@gnu.org, guile-devel@gnu.org, "Harlan Stenn" In-Reply-To: <87mz8o2w9x.fsf@laas.fr> Content-Disposition: inline X-Google-Sender-Auth: 88955d048414c431 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:6116 Archived-At: On 9/25/06, Ludovic Court=E8s wrote: > Hi, > > Bruce Korb writes: > > > /usr/local/gnu/include/libguile/smob.h:149: warning: declaration of 'fr= ee' 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 'w= rite' shadows a global declaration > > /usr/local/gnu/include/libguile/ports.h:254: warning: declaration of 't= runcate' 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 'ti= me' 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 'ti= me' 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 'st= ime' shadows a global declaration > > > > These are all due to argument names in prototype declarations. > > What compiler issues those messages? To me, it looks like the compiler > is kind of broken, because there's no reason (AFAIK) there can be name > clashes between argument names and global declarations. GCC on Solaris. I agree that it is just a documentation name and serves no other purpose, but there it is. I do like -Wshadow, but it is not so us= eful if cluttered up with these spurious messages. As for the "function is not a prototype" messages, having a typedef for the particular procedure profil= e being passed around allows for better profile matching in the calling code anyway. It also cleans up the appearance of your prototype. Thanks! - Bruce _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel