Patches item #1867738, was opened at 2008-01-09 16:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1867738&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: bugfix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: IOhannes m zm�lnig (zmoelnig)
Assigned to: Miller Puckette (millerpuckette)
Summary: [FIX] gensym() should use "const char*"

Initial Comment:
gensym is currently defined as "t_symbol *gensym(char *s);"

this leads to numerous warnings when compiling C++-externals, since C++ treats 
literals (strings) as "const char*".

e.g.
gensym("hello");
yields and a warning "warning: deprecated conversion from string constant to 
'char*'"

the fix for this is simple and makes total sense, since gensym() does not need 
to modify the passed string. just use:
t_symbol *gensym(const char *s);


the attached patch does this (it additionally applies the same to the 
dogensym() function in m_class.c

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

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

_______________________________________________
PD-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to