[Sugar-devel] Compiler warnings building olpcsound

Jigish Gohil cyberorg at opensuse.org
Mon Apr 27 07:35:14 EDT 2009


On Mon, Apr 27, 2009 at 4:58 PM, Aleksey Lim <alsroot at member.fsf.org> wrote:

>>
>> 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
>
Full build log:

http://pastebin.com/f2b133522

Changing the scons commandline shouldn't matter, oBS will not publish
till the errors are fixed.

Cheers

-J


More information about the Sugar-devel mailing list