[Sugar-devel] Compiler warnings building olpcsound

Aleksey Lim alsroot at member.fsf.org
Mon Apr 27 07:28:24 EDT 2009


On Mon, Apr 27, 2009 at 01:39:13PM +0530, Jigish Gohil wrote:
> Hi
> 
> I am getting the following message building olpcsound on openSUSE
> Build Service. Without fix for this issue the packages built will not
> get published. Could someone who knows what it means and what needs
> fixing provide patch?
> 
> We are using Csound5.10.1
> 
> Thanks
> 
> Jigish
> 
> I: Statement might be overflowing a buffer in strncat. Common mistake:
> BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the
> left over size as 3rd argument
> GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)
> E: olpcsound bufferoverflowstrncat OOps/dumpf.c:178, 181, 187, 190
> 
> I: Program causes undefined operation
> (likely same variable used twiceand post/pre incremented in the same
> expression).
> e.g. x = x++; Split it in two operations.
> E: olpcsound sequence-point Opcodes/gab/sliderTable.c:396, 420, 444, 467

could you post scons cmdline

-- 
Aleksey


More information about the Sugar-devel mailing list