clang3 warnings report from master (commit 7e87b4b)
In file included from /Users/thomas/Devel/oce/src/Poly/Poly_CoherentTriangulation.cxx:6:
In file included from /Users/thomas/Devel/oce/inc/Poly_CoherentTriangulation.hxx:14:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/Poly/Poly_CoherentTriangulation.cxx:25:29: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
Poly_CoherentTriangulation::Poly_CoherentTriangulation
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/Poly/Poly_CoherentTriangulation.cxx:25:29: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
Poly_CoherentTriangulation::Poly_CoherentTriangulation
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/Poly/Poly_CoherentTriangulation.cxx:25:29: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
Poly_CoherentTriangulation::Poly_CoherentTriangulation
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/Poly/Poly_CoherentTriangulation.cxx:121:42: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
NCollection_Vector vecNodeId;
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
4 warnings generated.
/PRODUCTS/flexbis-253-125/share/bison.simple:331:4: warning: implicit declaration of function 'ExprIntrperror' is invalid in C99 [-Wimplicit-function-declaration]
yyerror("parser stack overflow");
^
/Users/thomas/Devel/oce/drv/ExprIntrp/ExprIntrp.tab.c:10:17: note: instantiated from:
#define yyerror ExprIntrperror
^
/PRODUCTS/flexbis-253-125/share/bison.simple:403:16: warning: implicit declaration of function 'ExprIntrplex' is invalid in C99 [-Wimplicit-function-declaration]
yychar = YYLEX;
^
bison.simple:84:16: note: instantiated from:
#define YYLEX yylex()
^
/Users/thomas/Devel/oce/drv/ExprIntrp/ExprIntrp.tab.c:9:15: note: instantiated from:
#define yylex ExprIntrplex
^
2 warnings generated.
/Users/thomas/Devel/oce/drv/ExprIntrp/lex.ExprIntrp.c:2614:3: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
^
/Users/thomas/Devel/oce/drv/ExprIntrp/lex.ExprIntrp.c:2153:17: note: instantiated from:
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
^
1 warning generated.
/Users/thomas/Devel/oce/src/Geom/Geom_OffsetSurface.cxx:1622:16: warning: equality comparison with extraneous parentheses [-Wparentheses]
if ((NStatus == CSLib_Defined)) // akm - only in singularities && !AlongU && !AlongV)
~~~~~~~~^~~~~~~~~~~~~~~~
/Users/thomas/Devel/oce/src/Geom/Geom_OffsetSurface.cxx:1622:16: note: remove extraneous parentheses around the comparison to silence this warning
if ((NStatus == CSLib_Defined)) // akm - only in singularities && !AlongU && !AlongV)
~ ^ ~
/Users/thomas/Devel/oce/src/Geom/Geom_OffsetSurface.cxx:1622:16: note: use '=' to turn this equality comparison into an assignment
if ((NStatus == CSLib_Defined)) // akm - only in singularities && !AlongU && !AlongV)
^~
=
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx:6:
In file included from /Users/thomas/Devel/oce/drv/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.ixx:6:
In file included from /Users/thomas/Devel/oce/drv/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.jxx:32:
In file included from /Users/thomas/Devel/oce/inc/BinLDrivers_DocumentRetrievalDriver.hxx:35:
In file included from /Users/thomas/Devel/oce/inc/BinLDrivers_VectorOfDocumentSection.hxx:9:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx:31:38: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
BinLDrivers_DocumentRetrievalDriver::BinLDrivers_DocumentRetrievalDriver ()
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx:6:
In file included from /Users/thomas/Devel/oce/drv/BinLDrivers/BinLDrivers_DocumentStorageDriver.ixx:6:
In file included from /Users/thomas/Devel/oce/drv/BinLDrivers/BinLDrivers_DocumentStorageDriver.jxx:29:
In file included from /Users/thomas/Devel/oce/inc/BinLDrivers_DocumentStorageDriver.hxx:44:
In file included from /Users/thomas/Devel/oce/inc/BinLDrivers_VectorOfDocumentSection.hxx:9:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx:34:36: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
BinLDrivers_DocumentStorageDriver::BinLDrivers_DocumentStorageDriver ()
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
/Users/thomas/Devel/oce/src/Xw/Xw_set_double_buffer.cxx:50:26: warning: equality comparison with extraneous parentheses [-Wparentheses]
if( (SetDoubleBuffer == 'Y') ) {
~~~~~~~~~~~~~~~~^~~~~~
/Users/thomas/Devel/oce/src/Xw/Xw_set_double_buffer.cxx:50:26: note: remove extraneous parentheses around the comparison to silence this warning
if( (SetDoubleBuffer == 'Y') ) {
~ ^ ~
/Users/thomas/Devel/oce/src/Xw/Xw_set_double_buffer.cxx:50:26: note: use '=' to turn this equality comparison into an assignment
if( (SetDoubleBuffer == 'Y') ) {
^~
=
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/Extrema/Extrema_GenExtPS.cxx:9:
In file included from /Users/thomas/Devel/oce/drv/Extrema/Extrema_GenExtPS.ixx:6:
In file included from /Users/thomas/Devel/oce/drv/Extrema/Extrema_GenExtPS.jxx:29:
In file included from /Users/thomas/Devel/oce/inc/Extrema_GenExtPS.hxx:29:
In file included from /Users/thomas/Devel/oce/inc/Extrema_HUBTreeOfSphere.hxx:10:
In file included from /Users/thomas/Devel/oce/inc/NCollection_UBTreeFiller.hxx:10:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::ObjBnd>::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::ObjBnd>::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/inc/NCollection_UBTreeFiller.hxx:56:3: note: in instantiation of member function 'NCollection_Vector::ObjBnd>::NCollection_Vector' requested here
NCollection_UBTreeFiller (UBTree& theTree,
^
/Users/thomas/Devel/oce/src/Extrema/Extrema_GenExtPS.cxx:340:32: note: in instantiation of member function 'NCollection_UBTreeFiller::NCollection_UBTreeFiller' requested here
Extrema_UBTreeFillerOfSphere aFiller(*mySphereUBTree);
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
/Users/thomas/Devel/oce/src/AdvApp2Var/AdvApp2Var_Iso.cxx:232:5: warning: expression result unused [-Wunused-value]
(Standard_Real *) &HERRMOY->ChangeArray2()
^ ~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/Users/thomas/Devel/oce/src/GeomPlate/GeomPlate_PlateG0Criterion.cxx:77:5: warning: expression result unused [-Wunused-value]
(Standard_Real *) &Curve.ChangeValue(1);
^ ~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/BRepMesh/BRepMesh_CircleTool.cxx:6:
In file included from /Users/thomas/Devel/oce/drv/BRepMesh/BRepMesh_CircleTool.ixx:6:
In file included from /Users/thomas/Devel/oce/drv/BRepMesh/BRepMesh_CircleTool.jxx:8:
In file included from /Users/thomas/Devel/oce/inc/BRepMesh_CircleTool.hxx:23:
In file included from /Users/thomas/Devel/oce/inc/BRepMesh_CellFilter.hxx:10:
In file included from /Users/thomas/Devel/oce/inc/BRepMesh_CircleInspector.hxx:18:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/BRepMesh/BRepMesh_CircleTool.cxx:25:53: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
myInitCircle(nbComp)
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
/Users/thomas/Devel/oce/src/Graphic2d/Graphic2d_Paragraph.cxx:539:27: warning: expression result unused [-Wunused-value]
(myIsZoomable) ? myScale*aDrawer->Scale() : myScale;
~~~~~~~^~~~~~~~~~~~~~~~~
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx:45:
In file included from /Users/thomas/Devel/oce/inc/NCollection_UBTreeFiller.hxx:10:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::ObjBnd>::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::ObjBnd>::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/inc/NCollection_UBTreeFiller.hxx:56:3: note: in instantiation of member function 'NCollection_Vector::ObjBnd>::NCollection_Vector' requested here
NCollection_UBTreeFiller (UBTree& theTree,
^
/Users/thomas/Devel/oce/src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx:197:56: note: in instantiation of member function 'NCollection_UBTreeFiller::NCollection_UBTreeFiller' requested here
NCollection_UBTreeFiller aTreeFiller(aBBTree);
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
/Users/thomas/Devel/oce/src/TopOpeBRepTool/TopOpeBRepTool_makeTransition.cxx:257:35: warning: use of logical || with constant operand; switch to bitwise | or remove constant [-Wconstant-logical-operand]
Standard_Boolean mk1 = isINifh1 || isON2ifss || isIN2ifss;
^ ~~~~~~~~~
/Users/thomas/Devel/oce/src/TopOpeBRepTool/TopOpeBRepTool_makeTransition.cxx:264:35: warning: use of logical || with constant operand; switch to bitwise | or remove constant [-Wconstant-logical-operand]
Standard_Boolean mk2 = isINifh2 || isON2ifss || isOU2ifss;
^ ~~~~~~~~~
2 warnings generated.
In file included from /Users/thomas/Devel/oce/src/Interface/Interface_ParamList.cxx:6:
In file included from /Users/thomas/Devel/oce/drv/Interface/Interface_ParamList.ixx:6:
In file included from /Users/thomas/Devel/oce/drv/Interface/Interface_ParamList.jxx:14:
In file included from /Users/thomas/Devel/oce/inc/Interface_ParamList.hxx:20:
In file included from /Users/thomas/Devel/oce/inc/Interface_VectorOfFileParameter.hxx:11:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/Interface/Interface_ParamList.cxx:14:9: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
myVector (theIncrement)
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:302:9: warning: expression result unused [-Wunused-value]
vecnrm( data->fnormals[a].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:74:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:302:9: note: instantiated from:
vecnrm( data->fnormals[a].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:74:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:320:9: warning: expression result unused [-Wunused-value]
vecnrm( data->vnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:74:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:320:9: note: instantiated from:
vecnrm( data->vnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_indexpolygons.cxx:74:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
2 warnings generated.
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:258:7: warning: expression result unused [-Wunused-value]
vecnrm( data->fnormal.xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:58:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:258:7: note: instantiated from:
vecnrm( data->fnormal.xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:58:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:276:9: warning: expression result unused [-Wunused-value]
vecnrm( data->vnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:58:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:276:9: note: instantiated from:
vecnrm( data->vnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygon.cxx:58:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
2 warnings generated.
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:244:7: warning: expression result unused [-Wunused-value]
vecnrm( data->fnormal.xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:45:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:244:7: note: instantiated from:
vecnrm( data->fnormal.xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:45:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:267:9: warning: expression result unused [-Wunused-value]
vecnrm( data->vnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:45:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:267:9: note: instantiated from:
vecnrm( data->vnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_polygonholes.cxx:45:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
2 warnings generated.
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:237:11: warning: expression result unused [-Wunused-value]
vecnrm( data->fnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:63:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:237:11: note: instantiated from:
vecnrm( data->fnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:63:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:264:11: warning: expression result unused [-Wunused-value]
vecnrm( data->vnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:63:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:264:11: note: instantiated from:
vecnrm( data->vnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_qstrip.cxx:63:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
2 warnings generated.
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:208:11: warning: expression result unused [-Wunused-value]
vecnrm( data->fnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:67:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:208:11: note: instantiated from:
vecnrm( data->fnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:67:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:241:11: warning: expression result unused [-Wunused-value]
vecnrm( data->vnormals[j].xyz );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:67:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:241:11: note: instantiated from:
vecnrm( data->vnormals[j].xyz );
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_tmesh.cxx:67:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
2 warnings generated.
In file included from /Users/thomas/Devel/oce/src/NIS/NIS_Drawer.cxx:7:
In file included from /Users/thomas/Devel/oce/inc/NIS_View.hxx:14:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:181:41: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
NCollection_BaseVector (theOther, FuncDataInit, FuncDataFree)
^
/Users/thomas/Devel/oce/inc/NIS_View.hxx:250:12: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
{ return myDetected; }
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/NIS/NIS_DrawList.cxx:7:
In file included from /Users/thomas/Devel/oce/inc/NIS_View.hxx:14:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:181:41: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
NCollection_BaseVector (theOther, FuncDataInit, FuncDataFree)
^
/Users/thomas/Devel/oce/inc/NIS_View.hxx:250:12: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
{ return myDetected; }
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/NIS/NIS_InteractiveContext.cxx:6:
In file included from /Users/thomas/Devel/oce/inc/NIS_InteractiveContext.hxx:18:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:181:41: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
NCollection_BaseVector (theOther, FuncDataInit, FuncDataFree)
^
/Users/thomas/Devel/oce/inc/NIS_View.hxx:250:12: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
{ return myDetected; }
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/NIS/NIS_InteractiveContext.cxx:23:25: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
NIS_InteractiveContext::NIS_InteractiveContext ()
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
2 warnings generated.
In file included from /Users/thomas/Devel/oce/src/NIS/NIS_View.cxx:6:
In file included from /Users/thomas/Devel/oce/inc/NIS_View.hxx:14:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:181:41: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
NCollection_BaseVector (theOther, FuncDataInit, FuncDataFree)
^
/Users/thomas/Devel/oce/inc/NIS_View.hxx:250:12: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
{ return myDetected; }
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:569:3: warning: expression result unused [-Wunused-value]
vecnrm(n);
^~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:82:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:569:3: note: instantiated from:
vecnrm(n);
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:82:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:572:3: warning: expression result unused [-Wunused-value]
vecnrm(u);
^~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:82:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:572:3: note: instantiated from:
vecnrm(u);
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:82:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:575:3: warning: expression result unused [-Wunused-value]
vecnrm(v); /* redundant ? */
^~~~~~~~~
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:82:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:38: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
/Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:575:3: note: instantiated from:
vecnrm(v); /* redundant ? */
^
In file included from /Users/thomas/Devel/oce/src/OpenGl/OpenGl_view.cxx:82:
/Users/thomas/Devel/oce/inc/OpenGl_telem_util.hxx:87:48: note: instantiated from:
#define vecnrm(a) { Tfloat d; vecnrmd(a,d); }
^
3 warnings generated.
/Users/thomas/Devel/oce/src/TNaming/TNaming_Localizer.cxx:247:69: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (TS == TopAbs_EDGE || TS == TopAbs_VERTEX || TS == TopAbs_FACE && TA >= In.ShapeType()) {
~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/Users/thomas/Devel/oce/src/TNaming/TNaming_Localizer.cxx:247:69: note: place parentheses around the '&&' expression to silence this warning
if (TS == TopAbs_EDGE || TS == TopAbs_VERTEX || TS == TopAbs_FACE && TA >= In.ShapeType()) {
^
( )
1 warning generated.
/Users/thomas/Devel/oce/src/VrmlData/VrmlData_Geometry.cxx:61:16: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (anIndex < 0 || anIndex >= myLength) {
~~~~~~~ ^ ~
In file included from /Users/thomas/Devel/oce/src/VrmlData/VrmlData_Geometry.cxx:23:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/VrmlData/VrmlData_Geometry.cxx:551:29: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
NCollection_Vector vecValues;
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/VrmlData/VrmlData_Geometry.cxx:627:30: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
NCollection_Vector vecValues;
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
3 warnings generated.
In file included from /Users/thomas/Devel/oce/src/VrmlData/VrmlData_Scene.cxx:28:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/VrmlData/VrmlData_Scene.cxx:778:52: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
NCollection_Vector vecIndice;
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:176:31: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
FuncDataInit, FuncDataFree) {}
^
/Users/thomas/Devel/oce/src/VrmlData/VrmlData_Scene.cxx:779:52: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
NCollection_Vector vecInt;
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
2 warnings generated.
/Users/thomas/Devel/oce/src/BRepOffset/BRepOffset_Inter2d.cxx:1280:57: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (C3d->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/thomas/Devel/oce/src/BRepOffset/BRepOffset_Inter2d.cxx:1280:57: note: place parentheses around the '&&' expression to silence this warning
if (C3d->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) &&
^
1 warning generated.
/Users/thomas/Devel/oce/src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx:320:14: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (ot !=1 && //:l9 abv 15.01.99: CTS22023 and TEC0278: only if ot is function
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/thomas/Devel/oce/src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx:320:14: note: place parentheses around the '&&' expression to silence this warning
if (ot !=1 && //:l9 abv 15.01.99: CTS22023 and TEC0278: only if ot is function
^
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/ViewerTest/ViewerTest_EventManager.cxx:9:
In file included from /Users/thomas/Devel/oce/inc/NIS_View.hxx:14:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:181:41: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
NCollection_BaseVector (theOther, FuncDataInit, FuncDataFree)
^
/Users/thomas/Devel/oce/inc/NIS_View.hxx:250:12: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
{ return myDetected; }
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
In file included from /Users/thomas/Devel/oce/src/ViewerTest/ViewerTest_ViewerCommands.cxx:17:
In file included from /Users/thomas/Devel/oce/inc/ViewerTest.hxx:47:
In file included from /Users/thomas/Devel/oce/inc/NIS_InteractiveContext.hxx:18:
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: warning: destination for this 'memcpy' call is a pointer to dynamic class 'NCollection_Vector::MemBlock'; vtable pointer will be overwritten [-Wnon-pod-memaccess]
memcpy (aData, aSource, aSize * sizeof(MemBlock));
~~~~~~ ^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:181:41: note: in instantiation of member function 'NCollection_Vector::FuncDataInit' requested here
NCollection_BaseVector (theOther, FuncDataInit, FuncDataFree)
^
/Users/thomas/Devel/oce/inc/NIS_View.hxx:250:12: note: in instantiation of member function 'NCollection_Vector::NCollection_Vector' requested here
{ return myDetected; }
^
/Users/thomas/Devel/oce/inc/NCollection_Vector.hxx:290:15: note: explicitly cast the pointer to silence this warning
memcpy (aData, aSource, aSize * sizeof(MemBlock));
^
(void*)
1 warning generated.
clang3 warnings report from master (commit 7e87b4b)