[cig-commits] r20475 - seismo/2D/SPECFEM2D/trunk/src/specfem2D

dkomati1 at geodynamics.org dkomati1 at geodynamics.org
Fri Jul 6 17:04:22 PDT 2012


Author: dkomati1
Date: 2012-07-06 17:04:22 -0700 (Fri, 06 Jul 2012)
New Revision: 20475

Modified:
   seismo/2D/SPECFEM2D/trunk/src/specfem2D/write_jpeg_image.c
Log:
fixed a warning with Intel icc


Modified: seismo/2D/SPECFEM2D/trunk/src/specfem2D/write_jpeg_image.c
===================================================================
--- seismo/2D/SPECFEM2D/trunk/src/specfem2D/write_jpeg_image.c	2012-07-06 23:48:07 UTC (rev 20474)
+++ seismo/2D/SPECFEM2D/trunk/src/specfem2D/write_jpeg_image.c	2012-07-07 00:04:22 UTC (rev 20475)
@@ -27,7 +27,8 @@
   int height = *height_in;
 
   int bytes_per_pixel = 3;   /* or 1 for GRAYSCALE images */
-  int color_space = JCS_RGB; /* or JCS_GRAYSCALE for grayscale images */
+// DK DK suppressed this to fix a warning
+//  int color_space = JCS_RGB; /* or JCS_GRAYSCALE for grayscale images */
 
   /* this is a pointer to one row of image data */
   JSAMPROW row_pointer[1];
@@ -74,7 +75,9 @@
   cinfo.image_width = width;
   cinfo.image_height = height;
   cinfo.input_components = bytes_per_pixel;
-  cinfo.in_color_space = color_space;
+// DK DK changed this to fix a warning
+//  cinfo.in_color_space = color_space;
+  cinfo.in_color_space = JCS_RGB; /* or JCS_GRAYSCALE for grayscale images */
 
   /* default compression parameters, we should not be worried about these */
   jpeg_set_defaults( &cinfo );



More information about the CIG-COMMITS mailing list