changeset 3283:355bcd2cec54

* common/Subprocess.cpp: Silence signed/unsigned compiler warning with recent GCC. [ Bugzilla 1001955 ]
author jld
date Thu, 13 Mar 2014 15:31:34 +0000
parents b340d0ab5dd3
children 4839eca9f0c7
files host/tools/Utils/ChangeLog host/tools/Utils/common/Subprocess.cpp
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/host/tools/Utils/ChangeLog
+++ b/host/tools/Utils/ChangeLog
@@ -2,6 +2,8 @@ 2014-03-13  Andy Jackson  <andy@xylanta.
 
 	* common/eCosStd.h: Silence "set but unused" variable warnings with
 	recent GCC. [ Bugzilla 1001949 ]
+	* common/Subprocess.cpp: Silence signed/unsigned compiler warning
+	with recent GCC. [ Bugzilla 1001955 ]
 
 2006-03-29  John Dallaway  <jld@ecoscentric.com>
 
--- a/host/tools/Utils/common/Subprocess.cpp
+++ b/host/tools/Utils/common/Subprocess.cpp
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc.      
+// Copyright (C) 1998, 1999, 2000, 2004, 2014 Free Software Foundation, Inc.      
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
@@ -638,7 +638,7 @@ bool CSubprocess::PSExtract(CSubprocess:
             
             if(dwPidSize/sizeof(DWORD)<dwMaxPids){
               rc=true;
-              for( DWORD dwIndex = 0 ; (signed)dwIndex < dwPidSize/sizeof(DWORD); dwIndex++ ) {
+              for( DWORD dwIndex = 0 ; dwIndex < dwPidSize/sizeof(DWORD); dwIndex++ ) {
                 // Regardless of OpenProcess success or failure, we
                 // still call the enum func with the ProcID.
                 DWORD pid=arPids[dwIndex];