[Octopus-devel] Compiler warnings
Tobias Burnus
tobias.burnus at physik.fu-berlin.de
Tue May 16 13:57:17 WEST 2006
Hi all,
I just want to mention the following compile warnings (against SVN version):
**********liboct_parser********
string_f.c(64): warning #186: pointless comparison of unsigned integer
with zero
for(l--; l>=0; l--) /* find length of fortran
string */
********* liboct **********
write_iter.c(146): warning #181: argument is incompatible with
corresponding format string conversion
sprintf(w->buf+w->pos, "%8i%20.12e", w->iter, w->iter*w->dt);
w->pos+=8+20;
^
Per ISO C99 standard size_t is unsigned (with system-defined length). On
my systems it is also long ("%lu").
********* libxc *********
mgga_c_tpss.c(150): warning #592: variable "a" is used before its value
is set
double a = gzeta[i]/(sqrt(gzeta2)*a);
^
You are probably less interesed in external_libs. For completeness (with
ifort -gen-interfaces - this generates a *_mod.mod and *_mod.f90 file to
do interface checks):
**** expokit ***
fortcom: Error: expokit.f90, line 1512: The type of the actual argument
differs from the type of the dummy argument. [WSP]
call DNCHBV(mx,sgn*t_step,wsp(ih),mh,wsp(iexph),wsp(ifree+mx))
---------------------------------------------------------^
This seems to be a problem of double-precision vs. complex. I don't know
whether this is a real problem or not.
Tobias
More information about the Octopus-devel
mailing list