}
static inline int
-msglevel_forward_compatible (struct options *options)
+msglevel_forward_compatible (struct options *options, const int msglevel)
{
return options->forward_compatible ? M_WARN : msglevel;
}
{
struct gc_arena gc = gc_new ();
const bool pull_mode = BOOL_CAST (permission_mask & OPT_P_PULL_MODE);
- int msglevel_fc = msglevel_forward_compatible (options);
+ int msglevel_fc = msglevel_forward_compatible (options, msglevel);
ASSERT (MAX_PARMS >= 5);
if (!file)
if (streq (p[1], "FORWARD_COMPATIBLE") && p[2] && streq (p[2], "1"))
{
options->forward_compatible = true;
- msglevel_fc = msglevel_forward_compatible (options);
+ msglevel_fc = msglevel_forward_compatible (options, msglevel);
}
setenv_str (es, p[1], p[2] ? p[2] : "");
}