You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems that file_id was added in this commit ecc2818
but its usage was then removed later on.
furthermore having a static variable in a .h is forcing a definition of the variable in every translation unit that include the .h files, therefore not only the library, but also its clients.
MetalKnight
changed the title
NetCDF-C++4 API v.4.3.1: unused variable warning #1587
NetCDF-C++4 API v.4.3.1: unused variable warning
Jan 3, 2020
Hello, the latest C++4 APIs v.4.3.1 have the following compiler warning
netcdf4/include/ncGroup.h:18:14: error: ‘netCDF::file_id’ defined but not used [-Werror=unused-variable]
static int file_id;
^
which is preventing compilation with warning treated as errors in programs that compile and link against NetCDF shared objects + include files.
The text was updated successfully, but these errors were encountered: