[commit] r2369 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Oct 1 14:13:08 CDT 2013


Author: ksmyth
Date: Tue Oct  1 14:13:08 2013
New Revision: 2369

Log:
Fix unused variable access, warning

Modified:
   trunk/GME/Mga/MgaProject.cpp
   trunk/GME/Mga/StdAfx.h

Modified: trunk/GME/Mga/MgaProject.cpp
==============================================================================
--- trunk/GME/Mga/MgaProject.cpp	Tue Oct  1 14:12:58 2013	(r2368)
+++ trunk/GME/Mga/MgaProject.cpp	Tue Oct  1 14:13:08 2013	(r2369)
@@ -428,7 +428,7 @@
 		}
 
 		if(s.Length()) {
-			HRESULT hr;
+			HRESULT hr = S_OK;
 			if (ver.Length()) {
 				// Version string has precedence
 				hr = OpenParadigm(s,ver);
@@ -1935,7 +1935,7 @@
 					metaobjidpair_type *e = NULL;
 					GetArrayBounds(v, i, e);
 					while( i != e )	{
-		 				ClearLocks(storage, mset, (*i).metaid, (*i).objid, clear);
+		 				ClearLocks(storage, mset, (short)(*i).metaid, (*i).objid, clear);
 						i++;
 					}
 				}

Modified: trunk/GME/Mga/StdAfx.h
==============================================================================
--- trunk/GME/Mga/StdAfx.h	Tue Oct  1 14:12:58 2013	(r2368)
+++ trunk/GME/Mga/StdAfx.h	Tue Oct  1 14:13:08 2013	(r2369)
@@ -6,6 +6,9 @@
 #if !defined(AFX_STDAFX_H__270B4F89_B17C_11D3_9AD1_00AA00B6FE26__INCLUDED_)
 #define AFX_STDAFX_H__270B4F89_B17C_11D3_9AD1_00AA00B6FE26__INCLUDED_
 
+
+#pragma warning(3:4701) // Potentially uninitialized local variable 'name' used
+
 #pragma once
 
 //#define _SECURE_SCL 0


More information about the gme-commit mailing list