From 36a4e3d88f478fe9b9b739a2c55cb01a7e14356f Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Wed, 10 Sep 2025 14:43:58 -0500 Subject: [PATCH 1/2] mpi_t: Remove invalid error check MPL_env2str is used to check for CVARs with string or enum type. It returns only 0 or 1 based on whether the environment variable is found. It never returns -1, so we can safely remove the error check. --- maint/extractcvars | 1 - 1 file changed, 1 deletion(-) diff --git a/maint/extractcvars b/maint/extractcvars index aab9ce5568d..4965982e8a3 100755 --- a/maint/extractcvars +++ b/maint/extractcvars @@ -340,7 +340,6 @@ EOT elsif ($p->{type} eq 'string' or $p->{type} eq 'enum') { print OUTPUT_C < Date: Thu, 18 Sep 2025 10:33:10 -0500 Subject: [PATCH 2/2] mpi_t: Rename variable for clarity Whether or not the user has set an environment variable is tracked by the return codes of various MPL_env2* functions. If a variable is set and debugging is enabled, the setting gets printed out for the user. Rename got_rc->is_set to better indicate what the value represents. --- maint/extractcvars | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/maint/extractcvars b/maint/extractcvars index 4965982e8a3..580fa11359b 100755 --- a/maint/extractcvars +++ b/maint/extractcvars @@ -247,7 +247,7 @@ print OUTPUT_C <{name}; push @env_names, "${uc_ns}_" . $p->{name}; - print OUTPUT_C " got_rc = 0;\n"; + print OUTPUT_C " is_set = 0;\n"; foreach my $env_name (@env_names) { # assumes rc is defined if ($p->{type} eq 'range') { print OUTPUT_C <{type} eq 'string' or $p->{type} eq 'enum') { print OUTPUT_C <{type} eq 'string' or $p->{type} eq 'enum') { print OUTPUT_C " printf(\"CVAR: $var_name = %s\\n\", tmp_str);\n"; } elsif ($p->{type} eq "range") {