BIC-MNI/libminc — pull request #14 by brianhelba (2014-02-03 00:06:09+00:00)
Title: BUG: Return proper enumerated value from nc_type_to_minc2_type

The function "nc_type_to_minc2_type" is expected to return a value of type
"mitype_t", which is an enumerated type. "mitype_t" does not specific a
value equivalent to 0, so returning "MI_ORIGINAL_TYPE" (which is 0)
produces a warning.

The "nc_type" of "MI_ORIGINAL_TYPE" is a stand-in for "NC_NAT"
(i.e. 'Not A Type" [1]). This semantically best corresponds to the
"mitype_t" of "MI_TYPE_UNKNOWN".

[1] http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2000/msg00059.html