< prev index next >

src/java.desktop/share/native/libjavajpeg/jquant1.c

Print this page

        

@@ -437,10 +437,14 @@
 {
   my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
   ODITHER_MATRIX_PTR odither;
   int i, j, nci;
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   for (i = 0; i < cinfo->out_color_components; i++) {
     nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
     odither = NULL;             /* search for matching prior component */
     for (j = 0; j < i; j++) {
       if (nci == cquantize->Ncolors[j]) {

@@ -450,10 +454,13 @@
     }
     if (odither == NULL)        /* need a new table? */
       odither = make_odither_array(cinfo, nci);
     cquantize->odither[i] = odither;
   }
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 
 /*
  * Map some rows of pixels to the output colormapped representation.
< prev index next >