This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re^2: new testing version 1.7.90


> From: Stefan Gerlach <gerlach at mbi-berlin dot de>
> To: gsl-discuss at sourceware dot org
> Subject: Re: new testing version 1.7.90
> Date: Fri, 24 Mar 2006 11:02:25 +0100
>... 
> I test 1.7.90 on serveral Linux distributions using CFLAGS=3D"-O3 -Wall" and
> "make" & "make check" shows no errors. But i got some warnings:
> ...
> fermi_dirac.c: In function 'fd_neg':
> fermi_dirac.c:946: warning: 's' may be used uninitialized in this function
>

The 's' in fermi_dirac.c is actually intialized within fd_whiz() when called
for the first time in the loop. A simle solution would be to initialize

double s=0.0 ;

where complained. The line

  if(iterm == 0) *s = 0.0;

within fd_whiz() could then be dropped.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]