[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #HYV-329576]: error with netcdf.h



Thanks for pointing it out.

> 
> I installed the latest netcdf-c-4.6.1 (on my openSUSE Leap 42.3) and
> everthing went smoothly. When compiling my own C-code (using gcc version
> 4.8.5 (SUSE Linux)) that includes netcdf.h I get the following warning:
> 
> /lib/build/include/netcdf.h:1961:1: error: function declaration isn't a
> prototype [-Werror=strict-prototypes]
> nc_finalize();
> ^
> cc1: all warnings being treated as errors
> 
> In netcdf.h I changed line 1961
> from nc_finalize(); to nc_finalize(void);
> to resolve the error message.
> 
> Perhaps you might want to fix that.
> 
> Kind regards,
> Sabine Grießbach
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: HYV-329576
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.