From 93834ec9c4fda1dc98fcf44f65b9a6794bea5f2b Mon Sep 17 00:00:00 2001 From: Hyo-Kyung Lee Date: Fri, 22 Sep 2023 23:35:51 -0500 Subject: [PATCH] Remove NVHPC [set_but_not_used] warning. --- testpar/t_subfiling_vfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c index 7d0665d45bd..0400c305f40 100644 --- a/testpar/t_subfiling_vfd.c +++ b/testpar/t_subfiling_vfd.c @@ -2347,7 +2347,8 @@ main(int argc, char **argv) must_unset_ioc_thread_count_env = true; } - if (!(env_value = HDgetenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX))) { + env_value = HDgetenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX); + if (NULL != env_value) { int rand_value = 0; if (MAINPROCESS)