Skip to content

Commit

Permalink
nc4dispatch: don't initialize fields which may not exist
Browse files Browse the repository at this point in the history
These fields are only here if `USE_NETCDF4` is defined.
  • Loading branch information
mathstuf committed Feb 14, 2018
1 parent a705792 commit 7505bed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libsrc4/nc4dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ NC4_inq_var_all,
NC4_var_par_access,
NC4_def_var_fill,

#ifdef USE_NETCDF4
NC4_show_metadata,
NC4_inq_unlimdims,

Expand Down Expand Up @@ -97,6 +98,7 @@ NC4_def_var_endian,
NC4_def_var_filter,
NC4_set_var_chunk_cache,
NC4_get_var_chunk_cache,
#endif

};

Expand Down

0 comments on commit 7505bed

Please sign in to comment.