Fix all remaining compiler warnings
[ctsim.git] / tools / if2.cpp
index bc984c8c4254946e5310a7b87984a2e7ab726d0e..efd0554780c323a9349aacedb04b2a529c0d47f9 100644 (file)
@@ -86,7 +86,8 @@ if2_main (int argc, char *const argv[])
   int opt_rowPlot = -1;
   int opt_columnPlot = -1;
   Timer timerProgram;
-
+  UNUSED(opt_verbose);
+  
   while (1) {
     char* endptr;
     int c = getopt_long (argc, argv, "", my_options, NULL);
@@ -182,19 +183,20 @@ if2_main (int argc, char *const argv[])
     return(1);
   }
 
-  ImageFileArray v1 = im_in1.getArray();
-  ImageFileArray v2 = im_in2.getArray();
-  ImageFileArray vout = NULL;
-
   if (opt_bImageOutputFile && opt_bPlotOutputFile) {
     sys_error (ERR_SEVERE, "Both Image and Plot output files can not be selected simultaneously");
     return (1);
   }
+
+  ImageFileArray v1 = im_in1.getArray();
+  ImageFileArray v2 = im_in2.getArray();
+  ImageFileArray vout = NULL;
   if (opt_bImageOutputFile) {
     pim_out = new ImageFile (im_in1.nx(), im_in1.ny());
     vout = pim_out->getArray();
   }
-
+  UNUSED(vout);
+  
   std::string strOperation;
   int nx = im_in1.nx();
   int ny = im_in1.ny();