diff options
author | Muqun Yang <myang6@hdfgroup.org> | 2021-10-25 21:37:35 (GMT) |
---|---|---|
committer | Muqun Yang <myang6@hdfgroup.org> | 2021-10-25 21:37:35 (GMT) |
commit | 016a42fd6e446af25d43c53d413356026ebc5db2 (patch) | |
tree | eee55ea14074af18c3db5024812fe9572e29a605 /src/H5Fvfd_swmr.c | |
parent | fb51aa0da2322ca10326adb3f4b82d0022ad68f4 (diff) | |
download | hdf5-016a42fd6e446af25d43c53d413356026ebc5db2.zip hdf5-016a42fd6e446af25d43c53d413356026ebc5db2.tar.gz hdf5-016a42fd6e446af25d43c53d413356026ebc5db2.tar.bz2 |
Remove the compiler warnings.
Diffstat (limited to 'src/H5Fvfd_swmr.c')
-rw-r--r-- | src/H5Fvfd_swmr.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c index 918ef97..5119b38 100644 --- a/src/H5Fvfd_swmr.c +++ b/src/H5Fvfd_swmr.c @@ -54,6 +54,17 @@ #define nanosecs_per_second 1000000000 /* nanoseconds per second */ #define nanosecs_per_tenth_sec 100000000 /* nanoseconds per 0.1 second */ +/* clang-format off */ +/* The entry code number is listed in the comment for convenience. */ +static const char *H5Fvfd_swmr_log_tags[] = { + "FILE_OPEN", /* 0 */ + "FILE_CLOSE", /* 1 */ + "EOT_TRIGGER_TIME", /* 2 */ + "EOT_PROCESSING_TIME", /* 3 */ + "EOT_META_FILE_INDEX" /* 4 */ + }; +/* clang-format on */ + /********************/ /* Local Prototypes */ /********************/ @@ -1917,7 +1928,6 @@ H5F_post_vfd_swmr_log_entry(H5F_t *f, int entry_type_code, char *body) herr_t ret_value = SUCCEED; double temp_time; struct timespec current_time; - FUNC_ENTER_NOAPI(FAIL) if (HDclock_gettime(CLOCK_MONOTONIC, ¤t_time) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get time via clock_gettime"); |