8033758: gcc warnings compiling jdk/src/share/back
authoralanb
Thu, 06 Feb 2014 10:43:09 +0000
changeset 22934 705df2581571
parent 22658 30164afa0211
child 22935 4322bab78de4
8033758: gcc warnings compiling jdk/src/share/back Reviewed-by: dholmes, sla
jdk/src/share/back/ArrayTypeImpl.c
jdk/src/share/back/error_messages.c
jdk/src/share/back/util.c
--- a/jdk/src/share/back/ArrayTypeImpl.c	Wed Feb 05 18:37:42 2014 +0000
+++ b/jdk/src/share/back/ArrayTypeImpl.c	Thu Feb 06 10:43:09 2014 +0000
@@ -112,7 +112,7 @@
     WITH_LOCAL_REFS(env, 1) {
 
         jarray array;
-        jclass componentClass;
+        jclass componentClass = NULL;
         jdwpError serror;
 
         serror = getComponentClass(env, arrayClass,
--- a/jdk/src/share/back/error_messages.c	Wed Feb 05 18:37:42 2014 +0000
+++ b/jdk/src/share/back/error_messages.c	Thu Feb 06 10:43:09 2014 +0000
@@ -140,7 +140,7 @@
 const char *
 jvmtiErrorText(jvmtiError error)
 {
-    switch (error) {
+    switch ((int)error) {
         CASE_RETURN_TEXT(JVMTI_ERROR_NONE)
         CASE_RETURN_TEXT(JVMTI_ERROR_INVALID_THREAD)
         CASE_RETURN_TEXT(JVMTI_ERROR_INVALID_THREAD_GROUP)
--- a/jdk/src/share/back/util.c	Wed Feb 05 18:37:42 2014 +0000
+++ b/jdk/src/share/back/util.c	Thu Feb 06 10:43:09 2014 +0000
@@ -2122,7 +2122,7 @@
 jdwpError
 map2jdwpError(jvmtiError error)
 {
-    switch ( error ) {
+    switch ( (int)error ) {
         case JVMTI_ERROR_NONE:
             return JDWP_ERROR(NONE);
         case AGENT_ERROR_INVALID_THREAD: