diff src/share/native/sun/awt/medialib/mlib_ImageAffine.c @ 3813:8ab1b6226eed

6989717: media native code compiler warnings Reviewed-by: jgodinez, prr
author bae
date Fri, 25 Mar 2011 12:50:59 +0300
parents 00cd9dc3c2b5
children
line wrap: on
line diff
--- a/src/share/native/sun/awt/medialib/mlib_ImageAffine.c	Tue Mar 22 12:28:03 2011 +0300
+++ b/src/share/native/sun/awt/medialib/mlib_ImageAffine.c	Fri Mar 25 12:50:59 2011 +0300
@@ -210,6 +210,8 @@
     t_ind = 4;
   else if (type == MLIB_DOUBLE)
     t_ind = 5;
+  else
+    return MLIB_FAILURE; /* unknown image type */
 
   if (colormap != NULL && filter != MLIB_NEAREST) {
     if (t_ind != 0 && t_ind != 1)
@@ -318,6 +320,10 @@
         }
 
         break;
+
+    default:
+      /* nothing to do for other edge types. */
+      break;
     }
 
     if (param_e->buff_malloc != NULL)