harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r795011 - /harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/AgentEventRequest.cpp
Date Fri, 17 Jul 2009 08:42:53 GMT
Author: odeakin
Date: Fri Jul 17 08:42:52 2009
New Revision: 795011

URL: http://svn.apache.org/viewvc?rev=795011&view=rev
Log:
Capture strtol() return value to satisfy compiler warning.

Modified:
    harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/AgentEventRequest.cpp

Modified: harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/AgentEventRequest.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/AgentEventRequest.cpp?rev=795011&r1=795010&r2=795011&view=diff
==============================================================================
--- harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/AgentEventRequest.cpp
(original)
+++ harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/AgentEventRequest.cpp
Fri Jul 17 08:42:52 2009
@@ -213,9 +213,10 @@
                                     long int out_start;
                                     long int out_len = 1;
                                     if (tok[0] == '#') {
+                                        long ret;
                                         tok++;
-                                         // ignore file id
-                                        (void)strtol(tok, &tok, 10);
+                                         // ignore file id - capture return value to satisfy
compiler
+                                        ret = strtol(tok, &tok, 10);
                                     }
                                     if (tok[0] == ',') {
                                         tok++;



Mime
View raw message