diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-03-24 16:25:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 16:25:50 (GMT) |
commit | df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd (patch) | |
tree | 24a9e510d661a6179d1a62083738d55dac97fcd6 /src | |
parent | 695a4e4f656c91e380eb34aaf8daabc897267a65 (diff) | |
download | hdf5-df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd.zip hdf5-df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd.tar.gz hdf5-df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd.tar.bz2 |
Misc warning fixes (#495)
* Committing clang-format changes
* Misc warning fixes from Visual Studio
* Committing clang-format changes
* Fixes warnings in swmr.c test
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/H5system.c | 4 | ||||
-rw-r--r-- | src/H5trace.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/H5system.c b/src/H5system.c index caf2fc3..144e0bc 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -573,8 +573,8 @@ Wgetlogin(void) { #ifdef H5_HAVE_WINSOCK2_H - long bufferCount = WloginBuffer_count; - if (GetUserName(Wlogin_buffer, &bufferCount) == 0) + DWORD bufferCount = WloginBuffer_count; + if (GetUserName(Wlogin_buffer, &bufferCount) != 0) return (Wlogin_buffer); else #endif /* H5_HAVE_WINSOCK2_H */ diff --git a/src/H5trace.c b/src/H5trace.c index aa9cfd4..d0c6fdd 100644 --- a/src/H5trace.c +++ b/src/H5trace.c @@ -3884,7 +3884,7 @@ H5_trace(const double *returning, const char *func, const char *type, ...) FILE * out = H5_debug_g.trace; static hbool_t is_first_invocation = TRUE; H5_timer_t function_timer = {{0}, {0}, {0}, FALSE}; - H5_timevals_t function_times; + H5_timevals_t function_times = {0.0, 0.0, 0.0}; static H5_timer_t running_timer; H5_timevals_t running_times; static int current_depth = 0; |