[MOAB-dev] commit/MOAB: vijaysm: Remove some uninitialized variable usage warnings.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 14 19:24:21 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/db146a6c57e4/
Changeset:   db146a6c57e4
Branch:      vijaysm/refiner_fixes
User:        vijaysm
Date:        2014-07-15 02:23:47
Summary:     Remove some uninitialized variable usage warnings.

Affected #:  1 file

diff --git a/tools/refiner/RefinerTagManager.cpp b/tools/refiner/RefinerTagManager.cpp
index c66a974..e4602c5 100644
--- a/tools/refiner/RefinerTagManager.cpp
+++ b/tools/refiner/RefinerTagManager.cpp
@@ -287,7 +287,7 @@ void RefinerTagManager::get_output_vertex_tag( int i, Tag& tag, int& byte_offset
   */
 int RefinerTagManager::get_input_gids( int n, const EntityHandle* ents, std::vector<int>& gids )
 {
-  int stat;
+  int stat=0;
   gids.clear();
   for ( int i = 0; i < n; ++ i )
     {
@@ -315,7 +315,7 @@ int RefinerTagManager::get_input_gids( int n, const EntityHandle* ents, std::vec
   */
 int RefinerTagManager::get_output_gids( int n, const EntityHandle* ents, std::vector<int>& gids )
 {
-  int stat;
+  int stat=0;
   gids.clear();
   for ( int i = 0; i < n; ++ i )
     {

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list