Commit d423367d authored by gsell's avatar gsell

most warnings fixed if compiling with NDEBUG defined

parent 72365540
...@@ -165,10 +165,9 @@ h5_openfile ( ...@@ -165,10 +165,9 @@ h5_openfile (
h5_int64_t* _props, h5_int64_t* _props,
const int _len_fname const int _len_fname
) { ) {
int len_fname = strlenf (_fname, _len_fname);
H5_API_ENTER (h5_int64_t, H5_API_ENTER (h5_int64_t,
"fname = %*s, mode=%lld, props=%lld", "fname = %*s, mode=%lld, props=%lld",
len_fname, _fname, (long long int)*_mode, (long long int)*_props); _len_fname, _fname, (long long int)*_mode, (long long int)*_props);
char* fname = h5_strdupfor2c (_fname, _len_fname); char* fname = h5_strdupfor2c (_fname, _len_fname);
h5_int64_t mode = *_mode; h5_int64_t mode = *_mode;
h5_prop_t props = (h5_prop_t)*_props; h5_prop_t props = (h5_prop_t)*_props;
......
...@@ -765,8 +765,7 @@ h5_err_t ...@@ -765,8 +765,7 @@ h5_err_t
h5_start_traverse_iterations ( h5_start_traverse_iterations (
const h5_file_t f_ /*!< file handle */ const h5_file_t f_ /*!< file handle */
) { ) {
h5_file_p f = (h5_file_p)f_; H5_CORE_API_ENTER (int, "f=%p", (void*)f_);
H5_CORE_API_ENTER (int, "f=%p", f);
/* /*
fast test: Does Step#0 or Step#1 exist? fast test: Does Step#0 or Step#1 exist?
......
...@@ -687,6 +687,7 @@ rebuild_map_elem_g2l ( ...@@ -687,6 +687,7 @@ rebuild_map_elem_g2l (
H5_RETURN (H5_SUCCESS); H5_RETURN (H5_SUCCESS);
} }
#if defined(WITH_PARALLEL_H5GRID)
/* /*
Rebuild mapping of global element indices to their local indices. Rebuild mapping of global element indices to their local indices.
*/ */
...@@ -716,6 +717,7 @@ rebuild_map_elem_g2l_partial ( ...@@ -716,6 +717,7 @@ rebuild_map_elem_g2l_partial (
h5priv_sort_idxmap (map); h5priv_sort_idxmap (map);
H5_RETURN (H5_SUCCESS); H5_RETURN (H5_SUCCESS);
} }
#endif
h5_err_t h5_err_t
h5t_end_store_elems ( h5t_end_store_elems (
......
...@@ -248,10 +248,9 @@ h5u_write_dataset ( ...@@ -248,10 +248,9 @@ h5u_write_dataset (
const void* data, /*!< IN: Array to commit to disk */ const void* data, /*!< IN: Array to commit to disk */
const h5_types_t type /*!< IN: Type of data */ const h5_types_t type /*!< IN: Type of data */
) { ) {
h5_file_p f = (h5_file_p)fh;
H5_CORE_API_ENTER (h5_err_t, H5_CORE_API_ENTER (h5_err_t,
"f=%p, name='%s', data=%p, type=%lld", "f=%p, name='%s', data=%p, type=%lld",
f, name, data, (long long int)type); (void*)fh, name, data, (long long int)type);
hid_t dset_id; hid_t dset_id;
TRY (dset_id = h5u_open_dataset (fh, name, type)); TRY (dset_id = h5u_open_dataset (fh, name, type));
TRY (h5u_write (fh, dset_id, type, data)); TRY (h5u_write (fh, dset_id, type, data));
......
...@@ -43,9 +43,15 @@ ...@@ -43,9 +43,15 @@
#define H5_PRIV_FUNC_ENTER(type, fmt, ...) \ #define H5_PRIV_FUNC_ENTER(type, fmt, ...) \
__FUNC_ENTER(type, H5_DEBUG_PRIV_FUNC, fmt, __VA_ARGS__ ) __FUNC_ENTER(type, H5_DEBUG_PRIV_FUNC, fmt, __VA_ARGS__ )
#ifdef NDEBUG
#define H5_INLINE_FUNC_ENTER(type) \ #define H5_INLINE_FUNC_ENTER(type) \
type ret_value = (type)H5_ERR; int __log__ = 0; type ret_value = (type)H5_ERR;
#else
#define H5_INLINE_FUNC_ENTER(type) \
type ret_value = (type)H5_ERR; int __log__ = 0;
#endif
#define HDF5_WRAPPER_ENTER(type, fmt, ...) \ #define HDF5_WRAPPER_ENTER(type, fmt, ...) \
__FUNC_ENTER(type, H5_DEBUG_HDF5, fmt, __VA_ARGS__ ) __FUNC_ENTER(type, H5_DEBUG_HDF5, fmt, __VA_ARGS__ )
......
...@@ -191,9 +191,9 @@ h5t_add_chunked_tetrahedral_mesh ( ...@@ -191,9 +191,9 @@ h5t_add_chunked_tetrahedral_mesh (
const h5_weight_t num_weights, const h5_weight_t num_weights,
h5t_mesh_t** mesh h5t_mesh_t** mesh
) { ) {
h5_file_p f = (h5_file_p)fh; H5_CORE_API_ENTER (h5_err_t, "f=%p, name=%s, mesh=%p", (void*)fh, name, mesh);
H5_CORE_API_ENTER (h5_err_t, "f=%p, name=%s, mesh=%p", f, name, mesh);
#ifdef WITH_PARALLEL_H5GRID #ifdef WITH_PARALLEL_H5GRID
h5_file_p f = (h5_file_p)fh;
CHECK_WRITABLE_MODE (f); CHECK_WRITABLE_MODE (f);
h5_err_t exists; h5_err_t exists;
TRY (exists = h5priv_link_exists ( TRY (exists = h5priv_link_exists (
......
...@@ -209,9 +209,9 @@ h5t_add_chunked_triangle_mesh( ...@@ -209,9 +209,9 @@ h5t_add_chunked_triangle_mesh(
const h5_weight_t num_weights, const h5_weight_t num_weights,
h5t_mesh_t** mesh h5t_mesh_t** mesh
) { ) {
h5_file_p f = (h5_file_p)fh; H5_CORE_API_ENTER (h5_err_t, "f=%p, name=%s, mesh=%p", (void*)fh, name, mesh);
H5_CORE_API_ENTER (h5_err_t, "f=%p, name=%s, mesh=%p", f, name, mesh);
#ifdef WITH_PARALLEL_H5GRID #ifdef WITH_PARALLEL_H5GRID
h5_file_p f = (h5_file_p)fh;
int size = -1; int size = -1;
TRY (h5priv_mpi_comm_size (f->props->comm, &size)); TRY (h5priv_mpi_comm_size (f->props->comm, &size));
if (size != 1) { if (size != 1) {
......
Markdown is supported
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