| I think it should. The warning is produced by the following:
*vector++ += value;
should it be replaced by:
vector++;
*vector += value;
vector is defined when the opcode is initialized as:
p->vector = ftp->ftable;
i.e. can you safely scan and modify ftables as above, or would it be
better to implement another method?
Andrés
Istvan Varga wrote:
> When compiling the new opcodes ported from CsoundAV in Csound5,
> I get a lot of warnings like these:
>
> Opcodes/gab/vectorial.c: In function `vpow':
> Opcodes/gab/vectorial.c:484: warning: operation on `vector' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vexp':
> Opcodes/gab/vectorial.c:496: warning: operation on `vector' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vpowv':
> Opcodes/gab/vectorial.c:604: warning: operation on `vector1' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vexpv':
> Opcodes/gab/vectorial.c:615: warning: operation on `vector1' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vmap':
> Opcodes/gab/vectorial.c:626: warning: operation on `vector1' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vlimit':
> Opcodes/gab/vectorial.c:651: warning: operation on `vector' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vport':
> Opcodes/gab/vectorial.c:706: warning: operation on `yt1' may be undefined
> Opcodes/gab/vectorial.c:706: warning: operation on `vector' may be
> undefined
> Opcodes/gab/vectorial.c: In function `vwrap':
> Opcodes/gab/vectorial.c:727: warning: operation on `vector' may be
> undefined
> Opcodes/gab/vectorial.c:729: warning: operation on `vector' may be
> undefined
>
> This type of warning is caused by code like 'a[i] = a[i++]' of which the
> operation is not defined and depends on the compiler. Should it be fixed ?
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |