From: Tomas Vondra Date: Tue, 8 Aug 2017 10:46:55 +0000 (+0200) Subject: Mark variable as const to prevent compiler warning X-Git-Tag: XL_10_R1BETA1~176 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=0b69492af7186538d831823a6fce3b64616be197;p=postgres-xl.git Mark variable as const to prevent compiler warning The quote_guc_value() result was assigned to regular (char *) variable, resulting in compiler warning about discarding const qualifier. Fix by marking the variable as 'const' too. --- diff --git a/src/backend/pgxc/pool/pgxcnode.c b/src/backend/pgxc/pool/pgxcnode.c index 809da4f1d2..66b993f53b 100644 --- a/src/backend/pgxc/pool/pgxcnode.c +++ b/src/backend/pgxc/pool/pgxcnode.c @@ -2673,7 +2673,7 @@ get_set_command(List *param_list, StringInfo command, bool local) foreach (lc, param_list) { ParamEntry *entry = (ParamEntry *) lfirst(lc); - char *value = NameStr(entry->value); + const char *value = NameStr(entry->value); if (strlen(value) == 0) value = "''";