From b8af06edec2799e3210efa92f1bbd95b9f7c24e3 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 7 Oct 2014 10:45:30 +0300 Subject: [PATCH] Silence compilers warnings without _HANDLE_ENLIST_IN_DTC_ or USE_LIBPQ. Compiler complained about unused variable. --- dlg_specific.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dlg_specific.c b/dlg_specific.c index 93ab927..cf6852b 100644 --- a/dlg_specific.c +++ b/dlg_specific.c @@ -263,10 +263,14 @@ void makeConnectString(char *connect_string, const ConnInfo *ci, UWORD len) { char got_dsn = (ci->dsn[0] != '\0'); - char encoded_item[LARGE_REGISTRY_LEN] - , keepaliveStr[32] - , preferLibpqStr[32] - , xaOptStr[16]; + char encoded_item[LARGE_REGISTRY_LEN]; + char keepaliveStr[32]; +#ifdef USE_LIBPQ + char preferLibpqStr[32]; +#endif +#ifdef _HANDLE_ENLIST_IN_DTC_ + char xaOptStr[16]; +#endif ssize_t hlen, nlen, olen; /*BOOL abbrev = (len <= 400);*/ BOOL abbrev = (len < 1024) || 0 < ci->force_abbrev_connstr; -- 2.39.5