From c001baf2c06ad35a7fe113c7ebc55cf9fdc0b94d Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Fri, 27 May 2016 13:39:38 +0000
Subject: [PATCH] Task #8437: Fix compile warning

---
 CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc b/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc
index 4b04e7d1fc3..2c78fcf6584 100644
--- a/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc
+++ b/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc
@@ -1165,7 +1165,7 @@ namespace LOFAR
     IPosition posOut(4,1,1,1,1);
     IPosition posEl(2,1,1);
     Complex pix;
-    uInt jjpix,ch;
+    uInt jjpix,ch = 0; /* gcc somehow complains ch can be uninitialised */
     Complex ElementValue;
     for(ch=0; ch<input_grid.shape()[3]; ++ch){
 #pragma omp parallel
-- 
GitLab