Commit 456257cd authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix emission of unused routine when netcdf is not available.

parent 7419f94b
......@@ -61,10 +61,10 @@ void cdfDebug(int debug)
Message("debug level %d", debug);
}
#if defined (HAVE_LIBNETCDF)
static
void cdfComment(int ncid)
{
#if defined (HAVE_LIBNETCDF)
static char comment[256] = "Climate Data Interface version ";
static int init = 0;
char *blank;
......@@ -85,8 +85,8 @@ void cdfComment(int ncid)
cdf_put_att_text(ncid, NC_GLOBAL, "CDI", strlen(comment), comment);
cdf_put_att_text(ncid, NC_GLOBAL, "Conventions", 6, "CF-1.4");
#endif
}
#endif
int cdfOpenFile(const char *filename, const char *mode, int *filetype)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment