+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/amftools.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.q3VVRe + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf amftools + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/amftools-svn32.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd amftools + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /builddir/build/SOURCES/amftools-Makefile Makefile + rm -rf include/muparser src/muparser include/stb_image src/stb_image include/rapidxml include/zip src/zip + sed -i 's|muparser/muParser.h|muParser.h|g' include/Equation.h + sed -i 's|stb_image/stb_image.h|stb_image.h|g' src/SimpleImage.cpp + sed -i 's|rapidxml/||g' include/XmlStream.h src/XmlStream.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ibTzqC + umask 022 + cd /builddir/build/BUILD + cd amftools + make -j4 g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/Amf.cpp -o bin/Amf.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/AMF_File.cpp -o bin/AMF_File.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/Equation.cpp -o bin/Equation.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -DUSE_OPEN_GL -c -fPIC src/Mesh.cpp -o bin/Mesh.o src/AMF_File.cpp:1204:1: warning: "/*" within comment [-Wcomment] /* src/Mesh.cpp: In member function 'bool CMesh::LoadAsciiSTL(std::__cxx11::string)': src/Mesh.cpp:355:6: warning: unused variable 'cnt' [-Wunused-variable] int cnt=0; ^~~ src/Mesh.cpp: In member function 'void CMesh::Draw(bool)': src/Mesh.cpp:503:9: warning: unused variable 'CurVerts' [-Wunused-variable] Vec3D CurVerts[3]; ^~~~~~~~ src/Equation.cpp: In member function 'bool CEquation::CheckParse(std::__cxx11::string*)': src/Equation.cpp:127:10: warning: variable 'result' set but not used [-Wunused-but-set-variable] double result; ^~~~~~ src/Equation.cpp: In member function 'void CEquation::ScaleVariable(std::__cxx11::string&, const string&, double)': src/Equation.cpp:196:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int pos=0; (pos=source.find(SymbVar, pos))!=std::string::npos; /*pos+=rLen*/){ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ src/Equation.cpp: In member function 'void CEquation::findAndReplace(std::__cxx11::string&, const string&, const string&)': src/Equation.cpp:242:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int pos=0; (pos=source.find(find, pos))!=std::string::npos; pos+=rLen){ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ src/Equation.cpp: In static member function 'static double CEquation::prsm(double, double, double, int)': src/Equation.cpp:320:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] unsigned long int ts1 = *(unsigned int*)&tx; ^~ src/Equation.cpp:321:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] unsigned long int ts2 = *(unsigned int*)&ty; ^~ src/Equation.cpp:322:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] unsigned long int ts3 = *(unsigned int*)&tz; ^~ In file included from include/AMF_File.h:17:0, from src/Amf.cpp:14: include/MeshTree.h: In destructor 'MeshTreeNode::~MeshTreeNode()': include/MeshTree.h:30:36: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] ~MeshTreeNode(){if (pMesh) delete pMesh;} ^~~~~ In file included from include/AMF_File.h:17:0, from src/AMF_File.cpp:11: include/MeshTree.h: In destructor 'MeshTreeNode::~MeshTreeNode()': include/MeshTree.h:30:36: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] ~MeshTreeNode(){if (pMesh) delete pMesh;} ^~~~~ src/AMF_File.cpp: In member function 'bool AmfFile::ImportX3d(int, int)': src/AMF_File.cpp:485:30: warning: variable 'AIndex' set but not used [-Wunused-but-set-variable] int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^~~~~~ src/AMF_File.cpp: In member function 'unsigned char* AmfFile::GenerateLayer(double, double, double, Vec3D, int*, int*, bool, std::__cxx11::string*, int)': src/AMF_File.cpp:2526:6: warning: unused variable 'ThisObjID' [-Wunused-variable] int ThisObjID = 0; ^~~~~~~~~ src/Amf.cpp: At global scope: src/Amf.cpp:20:29: warning: 'Amf::aInstanceParamD TranslateEnum(InstanceParamD)' defined but not used [-Wunused-function] static Amf::aInstanceParamD TranslateEnum(InstanceParamD ParamIn){switch (ParamIn){case INST_DX: return Amf::aINST_DX; case INST_DY: return Amf::aINST_DY; case INST_DZ: return Amf::aINST_DZ; case INST_RX: return Amf::aINST_RX; case INST_RY: return Amf::aINST_RY; case INST_RZ: return Amf::aINST_RZ; default: return Amf::aINST_DX;}} ^~~~~~~~~~~~~ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -DUSE_OPEN_GL -c -fPIC src/MeshSlice.cpp -o bin/MeshSlice.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -DUSE_OPEN_GL -c -fPIC src/MeshTree.cpp -o bin/MeshTree.o src/MeshSlice.cpp:823:2: warning: multi-line comment [-Wcomment] // |\ ^ src/MeshSlice.cpp:825:2: warning: multi-line comment [-Wcomment] // 3 | \ ^ src/MeshSlice.cpp:829:2: warning: multi-line comment [-Wcomment] // 4 | 5 \ ^ In file included from src/MeshTree.cpp:1:0: include/MeshTree.h: In destructor 'MeshTreeNode::~MeshTreeNode()': include/MeshTree.h:30:36: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] ~MeshTreeNode(){if (pMesh) delete pMesh;} ^~~~~ src/MeshTree.cpp: In member function 'void MeshTreeNode::Clear()': src/MeshTree.cpp:60:21: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] if (pMesh) {delete pMesh; pMesh=NULL;} ^~~~~ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nAmf.cpp -o bin/nAmf.o In file included from src/Mesh.cpp:10:0: include/Mesh.h: In member function 'void CMesh::SubdivideMe()': include/Mesh.h:60:56: warning: '*((void*)(&)+40).TexMap::TexIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~~ include/Mesh.h:60:78: warning: '*((void*)(&)+40).TexMap::uc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:93: warning: '*((void*)(&)+40).TexMap::uc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:108: warning: '*((void*)(&)+40).TexMap::uc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:123: warning: '*((void*)(&)+40).TexMap::vc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:138: warning: '*((void*)(&)+40).TexMap::vc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:153: warning: '*((void*)(&)+40).TexMap::vc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:168: warning: '*((void*)(&)+40).TexMap::TexTile' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~ include/Mesh.h:60:56: warning: '*((void*)(&)+40).TexMap::TexIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~~ include/Mesh.h:60:78: warning: '*((void*)(&)+40).TexMap::uc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:93: warning: '*((void*)(&)+40).TexMap::uc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:108: warning: '*((void*)(&)+40).TexMap::uc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:123: warning: '*((void*)(&)+40).TexMap::vc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:138: warning: '*((void*)(&)+40).TexMap::vc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:153: warning: '*((void*)(&)+40).TexMap::vc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:168: warning: '*((void*)(&)+40).TexMap::TexTile' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~ include/Mesh.h:60:56: warning: '*((void*)(&)+40).TexMap::TexIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~~ include/Mesh.h:60:78: warning: '*((void*)(&)+40).TexMap::uc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:93: warning: '*((void*)(&)+40).TexMap::uc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:108: warning: '*((void*)(&)+40).TexMap::uc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:123: warning: '*((void*)(&)+40).TexMap::vc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:138: warning: '*((void*)(&)+40).TexMap::vc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:153: warning: '*((void*)(&)+40).TexMap::vc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:168: warning: '*((void*)(&)+40).TexMap::TexTile' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~ include/Mesh.h:60:56: warning: '*((void*)(&)+40).TexMap::TexIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~~ include/Mesh.h:60:78: warning: '*((void*)(&)+40).TexMap::uc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:93: warning: '*((void*)(&)+40).TexMap::uc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:108: warning: '*((void*)(&)+40).TexMap::uc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:123: warning: '*((void*)(&)+40).TexMap::vc[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:138: warning: '*((void*)(&)+40).TexMap::vc[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:153: warning: '*((void*)(&)+40).TexMap::vc[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~~~~~^ include/Mesh.h:60:168: warning: '*((void*)(&)+40).TexMap::TexTile' may be used uninitialized in this function [-Wmaybe-uninitialized] inline TexMap& operator=(const TexMap& t) {TexIndex=t.TexIndex; uc[0]=t.uc[0]; uc[1]=t.uc[1]; uc[2]=t.uc[2]; vc[0]=t.vc[0]; vc[1]=t.vc[1]; vc[2]=t.vc[2]; TexTile = t.TexTile; return *this;}; //overload equals ~~^~~~~~~ In file included from include/MeshSlice.h:14:0, from include/MeshTree.h:19, from src/MeshTree.cpp:1: include/Mesh.h: In member function 'void MeshTreeNode::AddEdge(CFacet*, int, Vec3D&, Vec3D&)': include/Mesh.h:97:91: warning: 'V2' may be used uninitialized in this function [-Wmaybe-uninitialized] CLine(const int& av1, const int& av2, Vec3D vt1, Vec3D vt2) {Clear(); vi[0] = av1; vi[1] = av2; vt[0]=vt1; vt[1]=vt2; HasTangent[0]=true; HasTangent[1]=true;} ~~~~~~^~~~~ src/MeshTree.cpp:270:10: note: 'V2' was declared here int V1, V2; ^~ In file included from include/MeshSlice.h:14:0, from include/MeshTree.h:19, from src/MeshTree.cpp:1: include/Mesh.h:97:78: warning: 'V1' may be used uninitialized in this function [-Wmaybe-uninitialized] CLine(const int& av1, const int& av2, Vec3D vt1, Vec3D vt2) {Clear(); vi[0] = av1; vi[1] = av2; vt[0]=vt1; vt[1]=vt2; HasTangent[0]=true; HasTangent[1]=true;} ~~~~~~^~~~~ src/MeshTree.cpp:270:6: note: 'V1' was declared here int V1, V2; ^~ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nColor.cpp -o bin/nColor.o In file included from include/nTriangle.h:15:0, from include/nVolume.h:17, from include/nMesh.h:16, from include/nObject.h:16, from include/nAmf.h:17, from include/AMF_File.h:15, from src/AMF_File.cpp:11: include/nTexmap.h: In member function 'bool AmfFile::ImportX3d(int, int)': include/nTexmap.h:25:185: warning: 'BIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] nTexmap(int RTexIdIn, int GTexIdIn, int BTexIdIn, double U1In, double U2In, double U3In, double V1In, double V2In, double V3In) {Clear(); RTexID = RTexIdIn; GTexID = GTexIdIn; BTexID = BTexIdIn; uTex1 = U1In; uTex2 = U2In; uTex3 = U3In; vTex1 = V1In; vTex2 = V2In; vTex3 = V3In;} ~~~~~~~^~~~~~~~~~ src/AMF_File.cpp:485:22: note: 'BIndex' was declared here int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^~~~~~ In file included from include/nTriangle.h:15:0, from include/nVolume.h:17, from include/nMesh.h:16, from include/nObject.h:16, from include/nAmf.h:17, from include/AMF_File.h:15, from src/AMF_File.cpp:11: include/nTexmap.h:25:166: warning: 'GIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] nTexmap(int RTexIdIn, int GTexIdIn, int BTexIdIn, double U1In, double U2In, double U3In, double V1In, double V2In, double V3In) {Clear(); RTexID = RTexIdIn; GTexID = GTexIdIn; BTexID = BTexIdIn; uTex1 = U1In; uTex2 = U2In; uTex3 = U3In; vTex1 = V1In; vTex2 = V2In; vTex3 = V3In;} ~~~~~~~^~~~~~~~~~ src/AMF_File.cpp:485:14: note: 'GIndex' was declared here int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^~~~~~ In file included from include/nTriangle.h:15:0, from include/nVolume.h:17, from include/nMesh.h:16, from include/nObject.h:16, from include/nAmf.h:17, from include/AMF_File.h:15, from src/AMF_File.cpp:11: include/nTexmap.h:25:147: warning: 'RIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] nTexmap(int RTexIdIn, int GTexIdIn, int BTexIdIn, double U1In, double U2In, double U3In, double V1In, double V2In, double V3In) {Clear(); RTexID = RTexIdIn; GTexID = GTexIdIn; BTexID = BTexIdIn; uTex1 = U1In; uTex2 = U2In; uTex3 = U3In; vTex1 = V1In; vTex2 = V2In; vTex3 = V3In;} ~~~~~~~^~~~~~~~~~ src/AMF_File.cpp:485:6: note: 'RIndex' was declared here int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^~~~~~ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nComposite.cpp -o bin/nComposite.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nConstellation.cpp -o bin/nConstellation.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nCoordinates.cpp -o bin/nCoordinates.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nEdge.cpp -o bin/nEdge.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nInstance.cpp -o bin/nInstance.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nMaterial.cpp -o bin/nMaterial.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nMesh.cpp -o bin/nMesh.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nMetadata.cpp -o bin/nMetadata.o src/nMaterial.cpp: In member function 'int nMaterial::AddCompositeInstance(int, std::__cxx11::string, std::__cxx11::string*)': src/nMaterial.cpp:221:18: warning: statement has no effect [-Wunused-value] if (aID == 0) -1; //protect the void material ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nNormal.cpp -o bin/nNormal.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nObject.cpp -o bin/nObject.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nTexmap.cpp -o bin/nTexmap.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nTexture.cpp -o bin/nTexture.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nTriangle.cpp -o bin/nTriangle.o src/nObject.cpp: In member function 'bool nObject::GetBounds(double*, double*, double*, double*, double*, double*, int)': src/nObject.cpp:207:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nVertex.cpp -o bin/nVertex.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nVertices.cpp -o bin/nVertices.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nVolume.cpp -o bin/nVolume.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/SimpleImage.cpp -o bin/SimpleImage.o src/SimpleImage.cpp: In member function 'void CSimpleImage::ToRgba()': src/SimpleImage.cpp:190:17: warning: unused variable 'pBwIterator' [-Wunused-variable] unsigned char* pBwIterator = pBackup; ^~~~~~~~~~~ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/STL_File.cpp -o bin/STL_File.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/XmlCompress.cpp -o bin/XmlCompress.o src/XmlCompress.cpp: In function 'bool GetCompressedFiles(std::__cxx11::string, std::vector >*, std::vector >*, std::__cxx11::string*)': src/XmlCompress.cpp:152:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (uint i=0; i