[cgma-dev] r6061 - cgm/trunk/geom

janehu at mcs.anl.gov janehu at mcs.anl.gov
Fri Sep 6 12:55:07 CDT 2013


Author: janehu
Date: 2013-09-06 12:55:07 -0500 (Fri, 06 Sep 2013)
New Revision: 6061

Modified:
   cgm/trunk/geom/GeometryQueryEngine.hpp
   cgm/trunk/geom/Lump.hpp
   cgm/trunk/geom/ModelQueryEngine.hpp
   cgm/trunk/geom/Surface.hpp
Log:
Better way to remove warnings, provided by Danqing Wu.

Modified: cgm/trunk/geom/GeometryQueryEngine.hpp
===================================================================
--- cgm/trunk/geom/GeometryQueryEngine.hpp	2013-09-06 17:54:04 UTC (rev 6060)
+++ cgm/trunk/geom/GeometryQueryEngine.hpp	2013-09-06 17:55:07 UTC (rev 6061)
@@ -348,8 +348,8 @@
     //O vector showning transform.
     //O-Computes the transform from the transformed body.
 
-  virtual int curve_is_on_ignored_surface(Curve *curve,
-                    Surface *surf) { curve = curve; surf = surf; return 0; }
+  virtual int curve_is_on_ignored_surface(Curve* /* curve */,
+                    Surface* /* surf */) { return 0; }
 
   virtual const char* modeler_type() = 0;
   virtual int get_major_version() = 0;
@@ -446,7 +446,7 @@
 
   virtual CubitBoolean volumes_overlap (Lump *lump1, Lump *lump2 ) const = 0; 
 
-  virtual TopologyBridge* get_visible_entity_at_point(TopologyBridge* hidden_tb, CubitVector* point){hidden_tb = hidden_tb; point = point; return NULL;};
+  virtual TopologyBridge* get_visible_entity_at_point(TopologyBridge* /* hidden_tb */, CubitVector* /* point */){return NULL;};
 
   virtual CubitStatus get_visible_entities( TopologyBridge *hidden_tb, DLIList<TopologyBridge*> &real_tbs );
 

Modified: cgm/trunk/geom/Lump.hpp
===================================================================
--- cgm/trunk/geom/Lump.hpp	2013-09-06 17:54:04 UTC (rev 6060)
+++ cgm/trunk/geom/Lump.hpp	2013-09-06 17:55:07 UTC (rev 6061)
@@ -49,10 +49,10 @@
       //R- The enumerated type of the geometric representation
 
    virtual CubitStatus mass_properties( CubitVector &centroid, double &volume ) = 0;
-   virtual CubitStatus mass_properties( CubitVector principal_axes[3], 
-                                        CubitVector &principal_moments,
-                                        CubitVector &centroid, 
-                                        double &volume ) {principal_axes[0] = principal_axes[0]; principal_moments = principal_moments; centroid = centroid; volume = volume; return CUBIT_FAILURE;}
+   virtual CubitStatus mass_properties( CubitVector /* principal_axes */[3], 
+                                        CubitVector& /* principal_moments */,
+                                        CubitVector& /* centroid */, 
+                                        double& /* volume */ ) {return CUBIT_FAILURE;}
 
    protected: 
 

Modified: cgm/trunk/geom/ModelQueryEngine.hpp
===================================================================
--- cgm/trunk/geom/ModelQueryEngine.hpp	2013-09-06 17:54:04 UTC (rev 6060)
+++ cgm/trunk/geom/ModelQueryEngine.hpp	2013-09-06 17:55:07 UTC (rev 6061)
@@ -159,8 +159,8 @@
             { ModelQueryEngine::instance()->inc_query_call_stack(); }


More information about the cgma-dev mailing list