Commit 222789a1 authored by gsell's avatar gsell

examples/H5Block:

- inline function changed to static inline (otherwise gcc >= 5.3 complains)
parent 21dd57c9
Pipeline #12 skipped
......@@ -103,13 +103,22 @@ dump_float32_attrib (
printf ("\n");
}
inline void
static inline void
dump_string_attrib (
h5_file_t file,
const char* const field_name,
const char* const attrib_name,
h5_size_t attrib_nelems
) {
char* attrib_data[attrib_nelems];
H5BlockReadFieldAttribString (
file,
field_name,
attrib_name,
attrib_data);
printf ("Attribute: '%s'\n", attrib_name);
printf (" Type: H5_FLOAT32_T\n");
printf (" Data: %2f", attrib_data[0]);
}
void
......
......@@ -21,7 +21,7 @@ const ssize_t dim_y = 8;
const ssize_t dim_z = 32;
inline ssize_t idx (
static inline ssize_t idx (
ssize_t i, ssize_t i_dim,
ssize_t j, ssize_t j_dim,
ssize_t k
......
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