From: Pavan Deolasee Date: Mon, 14 Mar 2016 11:43:26 +0000 (+0530) Subject: Fix a compiler warning about mixing of code and declarations X-Git-Tag: XL9_5_R1BETA2~21 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=28c29a53eb5e66b35e706fe6cd197595ed71c558;p=postgres-xl.git Fix a compiler warning about mixing of code and declarations --- diff --git a/src/gtm/main/main.c b/src/gtm/main/main.c index 8186770ddd..3f56bfd65f 100644 --- a/src/gtm/main/main.c +++ b/src/gtm/main/main.c @@ -650,9 +650,10 @@ main(int argc, char *argv[]) } else { - GTM_MutexLockAcquire(&control_lock); GTM_RestoreContext restoreContext; + GTM_MutexLockAcquire(&control_lock); + ctlf = fopen(GTMControlFile, "r"); /*