[cgma-dev] r5555 - in cgm/trunk/geom: . virtual
jvporter at wisc.edu
jvporter at wisc.edu
Thu Jun 7 17:50:25 CDT 2012
Author: jvporter
Date: 2012-06-07 17:50:25 -0500 (Thu, 07 Jun 2012)
New Revision: 5555
Modified:
cgm/trunk/geom/CGMHistory.cpp
cgm/trunk/geom/GeometryUtil.cpp
cgm/trunk/geom/virtual/CompositeCoEdge.cpp
cgm/trunk/geom/virtual/CompositeCoSurf.cpp
cgm/trunk/geom/virtual/CompositeCurve.cpp
cgm/trunk/geom/virtual/CompositeGeom.cpp
cgm/trunk/geom/virtual/CompositeLoop.cpp
cgm/trunk/geom/virtual/CompositeLump.cpp
cgm/trunk/geom/virtual/CompositePoint.cpp
cgm/trunk/geom/virtual/CompositeShell.cpp
cgm/trunk/geom/virtual/CompositeSurface.cpp
cgm/trunk/geom/virtual/HiddenEntitySet.cpp
cgm/trunk/geom/virtual/PST_Data.cpp
cgm/trunk/geom/virtual/PartSurfFacetTool.cpp
cgm/trunk/geom/virtual/PartitionCurve.cpp
cgm/trunk/geom/virtual/PartitionEngine.cpp
cgm/trunk/geom/virtual/PartitionEntity.cpp
cgm/trunk/geom/virtual/PartitionLumpImprint.cpp
cgm/trunk/geom/virtual/PartitionPoint.cpp
cgm/trunk/geom/virtual/PartitionSurface.cpp
cgm/trunk/geom/virtual/SegmentedCurve.cpp
cgm/trunk/geom/virtual/SubEntitySet.cpp
cgm/trunk/geom/virtual/VirtualQueryEngine.cpp
Log:
Fix printf warnings for OCC build
Modified: cgm/trunk/geom/CGMHistory.cpp
===================================================================
--- cgm/trunk/geom/CGMHistory.cpp 2012-06-07 21:50:30 UTC (rev 5554)
+++ cgm/trunk/geom/CGMHistory.cpp 2012-06-07 22:50:25 UTC (rev 5555)
@@ -129,7 +129,7 @@
for( i=0; i<port_event.TopologyBridges.size(); i++ )
{
TopologyBridge *tb = port_event.TopologyBridges[i];
- PRINT_INFO(" %p", tb );
+ PRINT_INFO(" %p", static_cast<void*>(tb) );
}
PRINT_INFO("\n");
}
Modified: cgm/trunk/geom/GeometryUtil.cpp
===================================================================
--- cgm/trunk/geom/GeometryUtil.cpp 2012-06-07 21:50:30 UTC (rev 5554)
+++ cgm/trunk/geom/GeometryUtil.cpp 2012-06-07 22:50:25 UTC (rev 5555)
@@ -1939,7 +1939,7 @@
result = CUBIT_FALSE;
if( print_error )
PRINT_ERROR("CoEdge @ %p in Surface %d has no Curve!\n",
- coedge_ptr, face_ptr->id() );
+ static_cast<void*>(coedge_ptr), face_ptr->id() );
continue;
}
@@ -2276,7 +2276,7 @@
{
if( print ) PRINT_ERROR(
"No RefVolume for Lump %p in %s\n",
- lump, body_ptr->entity_name().c_str() );
+ static_cast<void*>(lump), body_ptr->entity_name().c_str() );
result = CUBIT_FALSE;
}
}
@@ -2378,7 +2378,7 @@
{
if( print ) PRINT_ERROR(
"No Shell for ShellSM %p in %s\n",
- shell, vol_ptr->entity_name().c_str() );
+ static_cast<void*>(shell), vol_ptr->entity_name().c_str() );
result = CUBIT_FALSE;
}
}
@@ -2410,7 +2410,7 @@
if ( shell_bridges.size() != 1 )
{
PRINT_ERROR("Shell %p (in Volume %d) has %d attached ShellSM(s).\n",
- shell_ptr, shell_ptr->get_ref_volume_ptr() ?
+ static_cast<void*>(shell_ptr), shell_ptr->get_ref_volume_ptr() ?
More information about the cgma-dev
mailing list