[Cs-dev] More oddities in compilation
Date | 2014-01-21 14:57 |
From | John ffitch |
Subject | [Cs-dev] More oddities in compilation |
Attachments | None None |
UPdated system and newer gcc /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:494:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] { "lpread", S(LPREAD),0, 3, "kkkk", "kSoo", lprdset_S,lpread }, ^ /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:495:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] { "lpread.i", S(LPREAD),0, 3, "kkkk", "kioo", lprdset,lpread }, ^ /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:497:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] { "lpreson",S(LPRESON),0, 5, "a", "a", lprsnset,NULL, lpreson }, ^ /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:500:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] { "lpinterp", S(LPINTERPOL),0, 3, "", "iik", lpitpset, lpinterpol, NULL}, ^ /home/jpff/Sourceforge/csound/New/csound6/OOps/mxfft.c: In function ‘fft_.constprop.2’: /home/jpff/Sourceforge/csound/New/csound6/OOps/mxfft.c:146:27: warning: array subscript is above array bounds [-Warray-bounds] for (; !(k%jj); nfac[++m]=j,k/=jj); ^ This one is odd! /home/jpff/Sourceforge/csound/New/csound6/Engine/csound_orc_compile.c:1908:22: warning: unused variable ‘var’ [-Wunused-variable] CS_VARIABLE *var = (CS_VARIABLE *)arg->argPtr; ^ ==John ffitch |
Date | 2014-01-21 15:09 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] More oddities in compilation |
That was leftover code. Removed now On 21 Jan 2014, at 14:57, John ffitch |
Date | 2014-01-21 17:04 |
From | jpff |
Subject | Re: [Cs-dev] More oddities in compilation |
Attachments | None None |
Thinking about the lpc size problem; it all depends on a constant MAXPOLES which was 1000 but was changed to 5000. This has the effect of having a 10000 array in lpread structure which seems excessive. Better would be to allocate the arrays dynamically (via auxch) to be the requested size. I can look at the changes but wanted to check that t seemed reasonable approach and no one else was hacking that arra. ==John ff On Tue, 21 Jan 2014, John ffitch wrote: > UPdated system and newer gcc > > /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:494:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] > { "lpread", S(LPREAD),0, 3, "kkkk", "kSoo", lprdset_S,lpread }, > ^ > /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:495:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] > { "lpread.i", S(LPREAD),0, 3, "kkkk", "kioo", lprdset,lpread }, > ^ > /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:497:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] > { "lpreson",S(LPRESON),0, 5, "a", "a", lprsnset,NULL, lpreson }, > ^ > /home/jpff/Sourceforge/csound/New/csound6/Engine/entry1.c:500:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] > { "lpinterp", S(LPINTERPOL),0, 3, "", "iik", lpitpset, lpinterpol, NULL}, > ^ |