On Sat, 2 Apr 2016, Linus Torvalds wrote:
> 
> The initialization
> 
> -       int pressure_delta[MAX_CYLINDERS] = { INT_MAX, };
> 
> only sets the first entry to INT_MAX, the rest will be initialized to 
> zero

Side note: instead of applying the "remove the code entirely" patch, 
alternatively this initialization could just be fixed, to look somethin 
glike

        int pressure_delta[MAX_CYLINDERS] = {
                [0 ... MAX_CYLINDERS-1] = INT_MAX
        };

to actually initialize them all. But if we really have no reason to worry 
about bogus linear interpolation data any more, removing it all is 
probably the right thing to do.

            Linus
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to