[Cs-dev] Code oddities
Date | 2007-05-01 15:23 |
From | |
Subject | [Cs-dev] Code oddities |
I am seeing the warning OOps/bus.c: In function 'pvsin_perf': OOps/bus.c:337: warning: dereferencing type-punned pointer will break strict-aliasing rules This is an oddity; it casts PVSDAT to PVSDATEX, but they are different; one has an AUXCH and the other has a float* which are not the same. ==John ffitch ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2007-05-01 15:54 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Code oddities |
yes, I see that, I'll make the code clearer. The 'frame' member of PVSDAT/EXT is actually never used in that function, so it will not cause problems. But I'll make the code a little better looking. At 15:23 01/05/2007, you wrote: >I am seeing the warning > >OOps/bus.c: In function 'pvsin_perf': >OOps/bus.c:337: warning: dereferencing type-punned pointer will break >strict-aliasing rules > >This is an oddity; it casts PVSDAT to PVSDATEX, but they are >different; one has an AUXCH and the other has a float* which are not >the same. > > >==John ffitch > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2007-05-01 16:03 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Code oddities |
OK, I made it a little more clear now. In CVS. At 15:23 01/05/2007, you wrote: >I am seeing the warning > >OOps/bus.c: In function 'pvsin_perf': >OOps/bus.c:337: warning: dereferencing type-punned pointer will break >strict-aliasing rules > >This is an oddity; it casts PVSDAT to PVSDATEX, but they are >different; one has an AUXCH and the other has a float* which are not >the same. > > >==John ffitch > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |