From b3dc01921f57f59286807a6838a49e7d5cb6b9a2 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Wed, 29 Apr 2009 11:12:31 +0000
Subject: [PATCH] Bug 1204: Fixed compile warnings

---
 CEP/ParmDB/include/ParmDB/ParmValue.h | 8 ++++----
 CEP/ParmDB/src/makesourcedb.cc        | 4 ++--
 CEP/ParmDB/test/tParmDBCasa.cc        | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/CEP/ParmDB/include/ParmDB/ParmValue.h b/CEP/ParmDB/include/ParmDB/ParmValue.h
index 9d9a0a77132..cb26fc91c04 100644
--- a/CEP/ParmDB/include/ParmDB/ParmValue.h
+++ b/CEP/ParmDB/include/ParmDB/ParmValue.h
@@ -92,10 +92,10 @@ namespace BBS {
 
     // Get the value shape.
     // <group>
-    int nx() const
-      { return itsValues.shape()[0]; }
-    int ny() const
-      { return itsValues.shape()[1]; }
+    uint nx() const
+      { return static_cast<uint>(itsValues.shape()[0]); }
+    uint ny() const
+      { return static_cast<uint>(itsValues.shape()[1]); }
     // </group>
 
     // Get the values.
diff --git a/CEP/ParmDB/src/makesourcedb.cc b/CEP/ParmDB/src/makesourcedb.cc
index d67372ee880..85759cab624 100644
--- a/CEP/ParmDB/src/makesourcedb.cc
+++ b/CEP/ParmDB/src/makesourcedb.cc
@@ -757,8 +757,8 @@ int main (int argc, char* argv[])
     string center = inputs.getString ("center");
     string radius = inputs.getString ("radius");
     string width  = inputs.getString ("width");
-    double minFlux = inputs.getDouble ("minflux");
-    double maxFlux = inputs.getDouble ("maxflux");
+//    double minFlux = inputs.getDouble ("minflux");
+//    double maxFlux = inputs.getDouble ("maxflux");
     string beamModel = inputs.getString ("beammodel");
     // Check if the format has to be read from a file.
     // It is if it starts with a <. Te filename should follow it. An empty
diff --git a/CEP/ParmDB/test/tParmDBCasa.cc b/CEP/ParmDB/test/tParmDBCasa.cc
index e7ddd58c043..9a4e64f1f6e 100644
--- a/CEP/ParmDB/test/tParmDBCasa.cc
+++ b/CEP/ParmDB/test/tParmDBCasa.cc
@@ -85,8 +85,8 @@ void checkDef (const ParmValueSet& pset, double value,
     ASSERT (pvalue.getValues().data()[0] == value);
   } else {
     // Array
-    ASSERT (pvalue.nx() == values.shape()[0]);
-    ASSERT (pvalue.ny() == values.shape()[1]);
+    ASSERT (pvalue.nx() == static_cast<uint>(values.shape()[0]));
+    ASSERT (pvalue.ny() == static_cast<uint>(values.shape()[1]));
     ASSERT (allEQ(pvalue.getValues(), values));
   }
 }
-- 
GitLab