Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix 97d28d4
  • Loading branch information
jef-n committed Jul 16, 2018
1 parent 720866c commit a5c399e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external/mdal/frmts/mdal_hdf5.hpp
Expand Up @@ -27,7 +27,9 @@ struct HdfString
char data [HDF_MAX_NAME];
};

template <int TYPE> inline void hdfClose( hid_t id ) { Q_UNUSED( id ); assert( false ); }
#define MDAL_UNUSED(x) (void)x;

template <int TYPE> inline void hdfClose( hid_t id ) { MDAL_UNUSED( id ); assert( id ); }
template <> inline void hdfClose<H5I_FILE>( hid_t id ) { H5Fclose( id ); }
template <> inline void hdfClose<H5I_GROUP>( hid_t id ) { H5Gclose( id ); }
template <> inline void hdfClose<H5I_DATASET>( hid_t id ) { H5Dclose( id ); }
Expand Down

0 comments on commit a5c399e

Please sign in to comment.