diff Meerwald/cmp_dwt.c @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +0200
parents be303a3f5ea8
children
line wrap: on
line diff
--- a/Meerwald/cmp_dwt.c	Wed Apr 16 15:55:52 2008 +0200
+++ b/Meerwald/cmp_dwt.c	Tue Apr 22 13:36:05 2008 +0200
@@ -26,7 +26,6 @@
 }
 
 void process_subband_var(gray **output, int cols, int rows, Image_tree p, Image_tree q, int type, double min, double max, gray maxval) {
-  int i;
   int col, row, startcol, startrow;
 
   if (!p || !q) return;
@@ -41,7 +40,6 @@
 }
 
 void process_subband_fixed(gray **output, int cols, int rows, Image_tree p, Image_tree q, int type, double m) {
-  int i;
   int col, row, startcol, startrow;
 
   if (!p || !q) return;
@@ -95,7 +93,7 @@
   gray orig_maxval;
   int cols, rows, format;
   gray maxval;
-  int col, row;
+  int row;
 
   int no_orig = 0;
   int m = 0;
@@ -210,14 +208,15 @@
 
   print = print_psnr_only ? out : stderr;
 
-  if (argc == 1 && *argv[0] != '-')
+  if (argc == 1 && *argv[0] != '-') {
     if ((in = fopen(argv[0], "rb")) == NULL) {
       fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
       exit(1);
     }
     else
       strcpy(input_name, argv[0]);
-
+  }
+  
   if (!orig && !no_orig) {
     fprintf(stderr, "%s: original image file not specified, using zero image\n", progname);
     strcpy(orig_name, "(zero)");

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.