Csound Csound-dev Csound-tekno Search About

[Cs-dev] More oddities in compilation

Date2014-01-21 14:57
FromJohn ffitch
Subject[Cs-dev] More oddities in compilation
AttachmentsNone  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


Date2014-01-21 15:09
FromVictor Lazzarini
SubjectRe: [Cs-dev] More oddities in compilation
That was leftover code. Removed now
On 21 Jan 2014, at 14:57, John ffitch  wrote:

> /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;


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-21 17:04
Fromjpff
SubjectRe: [Cs-dev] More oddities in compilation
AttachmentsNone  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},
>   ^