From 28c29a53eb5e66b35e706fe6cd197595ed71c558 Mon Sep 17 00:00:00 2001 From: Pavan Deolasee Date: Mon, 14 Mar 2016 17:13:26 +0530 Subject: [PATCH] Fix a compiler warning about mixing of code and declarations --- src/gtm/main/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); /* -- 2.39.5