Skip to content
Permalink
Browse files

fix 97d28d4

  • Loading branch information
jef-n committed Jul 16, 2018
1 parent 720866c commit a5c399e37701b4e33bd17baeeb9a142042edf7ad
Showing with 3 additions and 1 deletion.
  1. +3 −1 external/mdal/frmts/mdal_hdf5.hpp
@@ -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 ); }

0 comments on commit a5c399e

Please sign in to comment.
You can’t perform that action at this time.