Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Another Build Error

Date2005-10-24 20:45
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Another Build Error
Punning an int with a CSOUND* is dangerous -- and they are not the
same on my main computer.
==John ffitch


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-24 20:56
FromIstvan Varga
SubjectRe: [Cs-dev] Another Build Error
jpff@codemist.co.uk wrote:

> Punning an int with a CSOUND* is dangerous -- and they are not the
> same on my main computer.

Actually, the compiler warnings seem to be about taking the address
of a CSOUND* pointer and then casting that (of type CSOUND**) to void**,
so that in effect a CSOUND* pointer is type-punned (not casted) to void*.
I did not check if all warnings are about this, as there are quite a few,
so there may still be int vs. CSOUND* as well.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net