This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re^2: new testing version 1.7.90
- From: Richard Mathar <mathar at strw dot leidenuniv dot nl>
- To: gsl-discuss at sourceware dot org
- Date: Sun, 26 Mar 2006 13:58:54 +0200
- Subject: 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.