[PD-dev] [ pure-data-Bugs-1371511 ] declaration of `y1' shadows a global declaration

SourceForge.net noreply at sourceforge.net
Wed Oct 18 15:47:01 CEST 2006


Bugs item #1371511, was opened at 2005-12-02 02:41
Message generated for change (Comment added) made by matju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1371511&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: None
Status: Pending
Resolution: None
Priority: 5
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Miller Puckette (millerpuckette)
Summary: declaration of `y1' shadows a global declaration

Initial Comment:

When using math.h on Darwin, the y1 variable causes
lots of warnings.

../../pd/src/g_canvas.h:247: warning: declaration of
`y1' shadows a global declaration
/usr/include/architecture/ppc/math.h:483: warning:
shadowed declaration is here

Renaming y1 in g_canvas.h would fix this problem.

----------------------------------------------------------------------

Comment By: Mathieu Bouchard (matju)
Date: 2006-10-18 09:47

Message:
Logged In: YES 
user_id=801174

Whatever about calling functions y0,y1,yn, they've been
there since almost the beginning of unix. They're Bessel
functions defined in <math.h>. You won't be able to move
them out of it. This suggests that the -Wshadow warning is
of questionable use. I'd turn it off, personally.


----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2006-10-18 04:33

Message:
Logged In: YES 
user_id=564396

a) has this been fixed already? (i cannot reproduce this
anymore; also the pd(-extended) buildlogs do not show this
warning)
b) i don't think that this is a bug in pd; no global include
file (/usr/include/architecture/ppc/math.h) should use
global variable names like "i", "y1" and the like.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1371511&group_id=55736




More information about the Pd-dev mailing list