Csound Csound-dev Csound-tekno Search About

[Cs-dev] Looking at code analysis

Date2011-08-15 07:23
Fromjohn ffitch
Subject[Cs-dev] Looking at code analysis
I have just start to review these.  I cannot understand what is wrong
here

Logic error	Assigned value is garbage or undefined	OOps /bus.c	1384	5

The code is 
        FD_ZERO(&rfds);
        FD_SET(0, &rfds);
which clears the set and then sets 0 into set.  What is this about a
garbage value?
==John ffitch

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-15 10:16
FromVictor Lazzarini
SubjectRe: [Cs-dev] Looking at code analysis
I can't see a problem with this code.

Victor

On 15 Aug 2011, at 07:23, john ffitch wrote:

> I have just start to review these.  I cannot understand what is wrong
> here
>
> Logic error	Assigned value is garbage or undefined	OOps /bus.c	1384	5
>
> The code is
>        FD_ZERO(&rfds);
>        FD_SET(0, &rfds);
> which clears the set and then sets 0 into set.  What is this about a
> garbage value?
> ==John ffitch
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing  
> Subversion and
> the tools developers use with it. Learn more about uberSVN and get a  
> free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-15 12:13
FromSteven Yi
SubjectRe: [Cs-dev] Looking at code analysis
AttachmentsNone  None  
I did see that the clang static analyzer did have at least this related false positive reported:


Using Xcode 4.1 and llvm-gcc (vs. clang), I do not get an analyzer warning in bus.c, and get many other warnings that do not appear in Andres' report.


On Mon, Aug 15, 2011 at 5:16 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I can't see a problem with this code.

Victor

On 15 Aug 2011, at 07:23, john ffitch wrote:

> I have just start to review these.  I cannot understand what is wrong
> here
>
> Logic error   Assigned value is garbage or undefined  OOps /bus.c     1384    5
>
> The code is
>        FD_ZERO(&rfds);
>        FD_SET(0, &rfds);
> which clears the set and then sets 0 into set.  What is this about a
> garbage value?
> ==John ffitch
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing
> Subversion and
> the tools developers use with it. Learn more about uberSVN and get a
> free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel