Re: [PD-dev] getting rid of warning (incompatible integer to pointer conversion )

2022-02-23 Thread Alexandre Torres Porres
Thanks! Warnings: *gone* Code: *better* try to understand them and see if they might point to an actual mistake in > your code (as it is the case here). > > This is why I wanted to get rid of all warnings, to make sure there were no mistakes. In many cases I could spot big mistakes. Thanks

Re: [PD-dev] getting rid of warning (incompatible integer to pointer conversion )

2022-02-23 Thread IOhannes m zmölnig
Am 23. Februar 2022 15:39:03 MEZ schrieb Christof Ressi : > >Don't just try to get rid of warnings by doing random things until they >go away. Instead, try to understand them +0.1 mfg.sfg.jfd IOhannes ___ Pd-dev mailing list Pd-dev@lists.iem.at

Re: [PD-dev] getting rid of warning (incompatible integer to pointer conversion )

2022-02-23 Thread Christof Ressi
'sigvec' is declared as t_int ** and is used in *dsp_addv(chance_perform, n_sig, (t_int *)sigvec);* dsp_addv wants "t_int *" (= an array of t_int), not "t_int **", so sigvec must be "t_int *" as well. Consequently, variables must be cast to "t_int", not "t_int *", when assigning to the array.

Re: [PD-dev] getting rid of warning (incompatible integer to pointer conversion )

2022-02-23 Thread Alexandre Torres Porres
Em qua., 23 de fev. de 2022 às 06:21, IOhannes m zmoelnig escreveu: > > that is just a bug in your code. > it should read: > > ``` > int nblock = sp[0]->s_n; > ``` > If I do that I get this similar warning *warning: **incompatible integer to pointer conversion assigning* * to 't_int *'

Re: [PD-dev] getting rid of warning (incompatible integer to pointer conversion )

2022-02-23 Thread IOhannes m zmoelnig
On 2/23/22 03:43, Alexandre Torres Porres wrote: Hi, I'm trying to get rid of all compilation warnings for my library but I'm stuck with this one. Is there a way to get rid of this or I'll just have to live with it? *warning: **incompatible integer to pointer conversion initializing 't_int