[MOAB-dev] commit/MOAB: danwu: Removed some warnings (-Wunused-parameter and -Wunused-variable) for ReadCGM.cpp.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 20 09:51:46 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/e3e1bcfcdb74/
Changeset:   e3e1bcfcdb74
Branch:      master
User:        danwu
Date:        2014-05-20 16:51:34
Summary:     Removed some warnings (-Wunused-parameter and -Wunused-variable) for ReadCGM.cpp.

Affected #:  1 file

diff --git a/src/io/ReadCGM.cpp b/src/io/ReadCGM.cpp
index 19217e1..c4db384 100644
--- a/src/io/ReadCGM.cpp
+++ b/src/io/ReadCGM.cpp
@@ -421,7 +421,7 @@ ErrorCode ReadCGM::create_group_entsets( Interface* moab, std::map<RefEntity*,En
   return MB_SUCCESS;
 }
 
-ErrorCode ReadCGM::store_group_content( Interface* moab, std::map<RefEntity*,EntityHandle>* entitymap ) 
+ErrorCode ReadCGM::store_group_content( Interface* /* moab */, std::map<RefEntity*,EntityHandle>* entitymap )
 {
 
   ErrorCode rval;
@@ -532,8 +532,8 @@ ErrorCode ReadCGM::load_file(const char *cgm_file_name,
 
   // CGM data
   std::map<RefEntity*,EntityHandle>::iterator ci;
-  const char geom_categories[][CATEGORY_TAG_SIZE] = 
-      {"Vertex\0", "Curve\0", "Surface\0", "Volume\0", "Group\0"};
+  //const char geom_categories[][CATEGORY_TAG_SIZE] =
+      //{"Vertex\0", "Curve\0", "Surface\0", "Volume\0", "Group\0"};
  
   DLIList<ModelEntity*> me_list;
 
@@ -560,7 +560,7 @@ ErrorCode ReadCGM::load_file(const char *cgm_file_name,
   // create entity sets for all geometric entities
   DLIList<RefEntity*> entlist;
   std::map<RefEntity*,EntityHandle> entmap[5]; // one for each dim, and one for groups
-  std::map<RefEntity*,EntityHandle>* entmap_ptr = entmap;
+  //std::map<RefEntity*,EntityHandle>* entmap_ptr = entmap;
   rval = create_entity_sets( mdbImpl, entmap );
   if (rval!=MB_SUCCESS) return rval;

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