Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi all, When I install netcdf4 on Mac OS X 10.6, I got the following warning: fort-nc4.c: In function ‘nf_put_var1_int64_’: fort-nc4.c:209: warning: passing argument 4 of ‘nc_put_var1_longlong’ from incompatible pointer type ../libsrc4/netcdf.h:1043: note: expected ‘const long long int *’ but argument is of type ‘const int *’ fort-nc4.c: In function ‘nf_put_vara_int64_’: fort-nc4.c:211: warning: passing argument 5 of ‘nc_put_vara_longlong’ from incompatible pointer type ../libsrc4/netcdf.h:1158: note: expected ‘const long long int *’ but argument is of type ‘const int *’ ...................... I checked the problem and found that: line 209 in fort-nc4.c is as following: FCALLSCFUN4(NF_INT, nc_put_var1_longlong, NF_PUT_VAR1_INT64, nf_put_var1_int64, NCID, VARID, COORDS, INTVAR) But in ../libsrc4/netcdf.h 1043 is as following: EXTERNL int nc_put_var1_longlong(int ncid, int varid, const size_t *indexp, const long long *op); According to my understand, the warning means that INTVAR in fort-nc4.c line 209 is of type 'const int'. So how to change INTVAR to long type??? Thanks. Guangshan
netcdfgroup
archives: