changeset 9251:5db1742d044f

8033758: gcc warnings compiling jdk/src/share/back Reviewed-by: dholmes, sla
author alanb
date Thu, 06 Feb 2014 10:43:09 +0000
parents e6132f4b6059
children 35e8234342ba
files src/share/back/ArrayTypeImpl.c src/share/back/error_messages.c src/share/back/util.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/back/ArrayTypeImpl.c	Wed Feb 05 18:37:42 2014 +0000
+++ b/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/src/share/back/error_messages.c	Wed Feb 05 18:37:42 2014 +0000
+++ b/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/src/share/back/util.c	Wed Feb 05 18:37:42 2014 +0000
+++ b/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: