summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2014-04-02 08:30:59 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-03 14:00:20 +0200
commit462e50f4a59b7819136087005f067011b1dd08ea (patch)
treef93459257063e655e53417f492b9d9fe3f4b78d0 /src/3rdparty
parent9c69595849022c0b80bf0899c32d775cee97452f (diff)
[assimp] Silence compiler warnings in assimp
Change-Id: I6efacc0a4165109db2cd9418948622db3c15c7f5 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/assimp/code/BlobIOSystem.h6
-rw-r--r--src/3rdparty/assimp/code/Exporter.cpp2
-rw-r--r--src/3rdparty/assimp/code/IFCGeometry.cpp4
-rw-r--r--src/3rdparty/assimp/code/IFCLoader.cpp8
-rw-r--r--src/3rdparty/assimp/code/IFCMaterial.cpp4
-rw-r--r--src/3rdparty/assimp/code/IFCProfile.cpp2
-rw-r--r--src/3rdparty/assimp/code/IFCReaderGen.cpp6
-rw-r--r--src/3rdparty/assimp/code/XGLLoader.cpp2
-rw-r--r--src/3rdparty/assimp/contrib/poly2tri/poly2tri/common/shapes.cc8
-rw-r--r--src/3rdparty/assimp/contrib/unzip/crypt.h1
-rw-r--r--src/3rdparty/assimp/contrib/unzip/ioapi.c7
11 files changed, 29 insertions, 21 deletions
diff --git a/src/3rdparty/assimp/code/BlobIOSystem.h b/src/3rdparty/assimp/code/BlobIOSystem.h
index bf578768c..2371f1f55 100644
--- a/src/3rdparty/assimp/code/BlobIOSystem.h
+++ b/src/3rdparty/assimp/code/BlobIOSystem.h
@@ -88,9 +88,9 @@ public:
// -------------------------------------------------------------------
- virtual size_t Read(void* pvBuffer,
- size_t pSize,
- size_t pCount)
+ virtual size_t Read(void* /*pvBuffer*/,
+ size_t /*pSize*/,
+ size_t /*pCount*/)
{
return 0;
}
diff --git a/src/3rdparty/assimp/code/Exporter.cpp b/src/3rdparty/assimp/code/Exporter.cpp
index f8b144213..d9c204386 100644
--- a/src/3rdparty/assimp/code/Exporter.cpp
+++ b/src/3rdparty/assimp/code/Exporter.cpp
@@ -196,7 +196,7 @@ bool Exporter :: IsDefaultIOHandler() const
// ------------------------------------------------------------------------------------------------
-const aiExportDataBlob* Exporter :: ExportToBlob( const aiScene* pScene, const char* pFormatId, unsigned int pPreprocessing )
+const aiExportDataBlob* Exporter :: ExportToBlob( const aiScene* pScene, const char* pFormatId, unsigned int /*pPreprocessing*/ )
{
if (pimpl->blob) {
delete pimpl->blob;
diff --git a/src/3rdparty/assimp/code/IFCGeometry.cpp b/src/3rdparty/assimp/code/IFCGeometry.cpp
index 228ed790b..bbf03203b 100644
--- a/src/3rdparty/assimp/code/IFCGeometry.cpp
+++ b/src/3rdparty/assimp/code/IFCGeometry.cpp
@@ -1000,8 +1000,8 @@ void QuadrifyPart(const IfcVector2& pmin, const IfcVector2& pmax, XYSortedField&
// ------------------------------------------------------------------------------------------------
void InsertWindowContours(const std::vector< BoundingBox >& bbs,
const std::vector< std::vector<IfcVector2> >& contours,
- const std::vector<TempOpening>& openings,
- const std::vector<IfcVector3>& nors,
+ const std::vector<TempOpening>& /*openings*/,
+ const std::vector<IfcVector3>& /*nors*/,
const IfcMatrix3& minv,
const IfcVector2& scale,
const IfcVector2& offset,
diff --git a/src/3rdparty/assimp/code/IFCLoader.cpp b/src/3rdparty/assimp/code/IFCLoader.cpp
index c436befc7..381068751 100644
--- a/src/3rdparty/assimp/code/IFCLoader.cpp
+++ b/src/3rdparty/assimp/code/IFCLoader.cpp
@@ -369,7 +369,7 @@ void GetAbsTransform(aiMatrix4x4& out, const aiNode* nd, ConversionData& conv)
bool ProcessMappedItem(const IfcMappedItem& mapped, aiNode* nd_src, std::vector< aiNode* >& subnodes_src, ConversionData& conv)
{
// insert a custom node here, the cartesian transform operator is simply a conventional transformation matrix
- std::auto_ptr<aiNode> nd(new aiNode());
+ std::unique_ptr<aiNode> nd(new aiNode());
nd->mName.Set("IfcMappedItem");
// handle the Cartesian operator
@@ -550,7 +550,7 @@ aiNode* ProcessSpatialStructure(aiNode* parent, const IfcProduct& el, Conversion
}
// add an output node for this spatial structure
- std::auto_ptr<aiNode> nd(new aiNode());
+ std::unique_ptr<aiNode> nd(new aiNode());
nd->mName.Set(el.GetClassName()+"_"+(el.Name?el.Name:el.GlobalId));
nd->mParent = parent;
@@ -596,7 +596,7 @@ aiNode* ProcessSpatialStructure(aiNode* parent, const IfcProduct& el, Conversion
const IfcFeatureElementSubtraction& open = fills->RelatedOpeningElement;
// move opening elements to a separate node since they are semantically different than elements that are just 'contained'
- std::auto_ptr<aiNode> nd_aggr(new aiNode());
+ std::unique_ptr<aiNode> nd_aggr(new aiNode());
nd_aggr->mName.Set("$RelVoidsElement");
nd_aggr->mParent = nd.get();
@@ -634,7 +634,7 @@ aiNode* ProcessSpatialStructure(aiNode* parent, const IfcProduct& el, Conversion
if(const IfcRelAggregates* const aggr = conv.db.GetObject((*range.first).second)->ToPtr<IfcRelAggregates>()) {
// move aggregate elements to a separate node since they are semantically different than elements that are just 'contained'
- std::auto_ptr<aiNode> nd_aggr(new aiNode());
+ std::unique_ptr<aiNode> nd_aggr(new aiNode());
nd_aggr->mName.Set("$RelAggregates");
nd_aggr->mParent = nd.get();
diff --git a/src/3rdparty/assimp/code/IFCMaterial.cpp b/src/3rdparty/assimp/code/IFCMaterial.cpp
index 3386028af..c8d115d44 100644
--- a/src/3rdparty/assimp/code/IFCMaterial.cpp
+++ b/src/3rdparty/assimp/code/IFCMaterial.cpp
@@ -124,7 +124,7 @@ void FillMaterial(aiMaterial* mat,const IFC::IfcSurfaceStyle* surf,ConversionDat
}
}
}
- else if (const IFC::IfcSurfaceStyleWithTextures* tex = sel2->ResolveSelectPtr<IFC::IfcSurfaceStyleWithTextures>(conv.db)) {
+ else if (/*const IFC::IfcSurfaceStyleWithTextures* tex =*/ sel2->ResolveSelectPtr<IFC::IfcSurfaceStyleWithTextures>(conv.db)) {
// XXX
}
}
@@ -159,7 +159,7 @@ unsigned int ProcessMaterials(const IFC::IfcRepresentationItem& item, Conversion
IFCImporter::LogWarn("ignoring surface side marker on IFC::IfcSurfaceStyle: " + side);
}
- std::auto_ptr<aiMaterial> mat(new aiMaterial());
+ std::unique_ptr<aiMaterial> mat(new aiMaterial());
FillMaterial(mat.get(),surf,conv);
diff --git a/src/3rdparty/assimp/code/IFCProfile.cpp b/src/3rdparty/assimp/code/IFCProfile.cpp
index b90c6e2ec..b2ffa943f 100644
--- a/src/3rdparty/assimp/code/IFCProfile.cpp
+++ b/src/3rdparty/assimp/code/IFCProfile.cpp
@@ -101,7 +101,7 @@ void ProcessOpenProfile(const IfcArbitraryOpenProfileDef& def, TempMesh& meshout
}
// ------------------------------------------------------------------------------------------------
-void ProcessParametrizedProfile(const IfcParameterizedProfileDef& def, TempMesh& meshout, ConversionData& conv)
+void ProcessParametrizedProfile(const IfcParameterizedProfileDef& def, TempMesh& meshout, ConversionData& /*conv*/)
{
if(const IfcRectangleProfileDef* const cprofile = def.ToPtr<IfcRectangleProfileDef>()) {
const IfcFloat x = cprofile->XDim*0.5f, y = cprofile->YDim*0.5f;
diff --git a/src/3rdparty/assimp/code/IFCReaderGen.cpp b/src/3rdparty/assimp/code/IFCReaderGen.cpp
index 81f5dae55..56d2182fe 100644
--- a/src/3rdparty/assimp/code/IFCReaderGen.cpp
+++ b/src/3rdparty/assimp/code/IFCReaderGen.cpp
@@ -1045,7 +1045,7 @@ void IFC::GetSchema(EXPRESS::ConversionSchema& out)
namespace STEP {
// -----------------------------------------------------------------------------------------------------------
-template <> size_t GenericFill<NotImplemented>(const STEP::DB& db, const LIST& params, NotImplemented* in)
+template <> size_t GenericFill<NotImplemented>(const STEP::DB& /*db*/, const LIST& /*params*/, NotImplemented* /*in*/)
{
return 0;
}
@@ -1166,7 +1166,7 @@ template <> size_t GenericFill<IfcGrid>(const DB& db, const LIST& params, IfcGri
return base;
}
// -----------------------------------------------------------------------------------------------------------
-template <> size_t GenericFill<IfcRepresentationItem>(const DB& db, const LIST& params, IfcRepresentationItem* in)
+template <> size_t GenericFill<IfcRepresentationItem>(const DB& /*db*/, const LIST& /*params*/, IfcRepresentationItem* /*in*/)
{
size_t base = 0;
return base;
@@ -1890,7 +1890,7 @@ template <> size_t GenericFill<IfcColumn>(const DB& db, const LIST& params, IfcC
return base;
}
// -----------------------------------------------------------------------------------------------------------
-template <> size_t GenericFill<IfcObjectPlacement>(const DB& db, const LIST& params, IfcObjectPlacement* in)
+template <> size_t GenericFill<IfcObjectPlacement>(const DB& /*db*/, const LIST& /*params*/, IfcObjectPlacement* /*in*/)
{
size_t base = 0;
return base;
diff --git a/src/3rdparty/assimp/code/XGLLoader.cpp b/src/3rdparty/assimp/code/XGLLoader.cpp
index c171fcc93..c697580b0 100644
--- a/src/3rdparty/assimp/code/XGLLoader.cpp
+++ b/src/3rdparty/assimp/code/XGLLoader.cpp
@@ -401,7 +401,7 @@ aiNode* XGLImporter::ReadObject(TempScope& scope, bool skipFirst, const char* cl
ThrowException("<meshref> index out of range");
}
- for(; it != end && (*it).first == id; ++it) {
+ for(; it != end && (*it).first == static_cast<unsigned int>(id); ++it) {
// ok, this is n^2 and should get optimized one day
aiMesh* const m = (*it).second;
diff --git a/src/3rdparty/assimp/contrib/poly2tri/poly2tri/common/shapes.cc b/src/3rdparty/assimp/contrib/poly2tri/poly2tri/common/shapes.cc
index 388ab2cee..be0f05f2e 100644
--- a/src/3rdparty/assimp/contrib/poly2tri/poly2tri/common/shapes.cc
+++ b/src/3rdparty/assimp/contrib/poly2tri/poly2tri/common/shapes.cc
@@ -119,10 +119,10 @@ void Triangle::ClearDelunayEdges()
Point* Triangle::OppositePoint(Triangle& t, Point& p)
{
Point *cw = t.PointCW(p);
- double x = cw->x;
- double y = cw->y;
- x = p.x;
- y = p.y;
+// double x = cw->x;
+// double y = cw->y;
+// x = p.x;
+// y = p.y;
return PointCW(*cw);
}
diff --git a/src/3rdparty/assimp/contrib/unzip/crypt.h b/src/3rdparty/assimp/contrib/unzip/crypt.h
index 622f4bc2e..b885c5a7f 100644
--- a/src/3rdparty/assimp/contrib/unzip/crypt.h
+++ b/src/3rdparty/assimp/contrib/unzip/crypt.h
@@ -34,6 +34,7 @@
*/
static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab)
{
+ (void)pcrc_32_tab; // Unused
unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an
* unpredictable manner on 16-bit systems; not a problem
* with any known compiler so far, though */
diff --git a/src/3rdparty/assimp/contrib/unzip/ioapi.c b/src/3rdparty/assimp/contrib/unzip/ioapi.c
index b7200df75..f775107af 100644
--- a/src/3rdparty/assimp/contrib/unzip/ioapi.c
+++ b/src/3rdparty/assimp/contrib/unzip/ioapi.c
@@ -74,6 +74,7 @@ voidpf ZCALLBACK fopen_file_func (opaque, filename, mode)
const char* filename;
int mode;
{
+ (void)opaque; // Unused
FILE* file = NULL;
const char* mode_fopen = NULL;
if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
@@ -97,6 +98,7 @@ uLong ZCALLBACK fread_file_func (opaque, stream, buf, size)
void* buf;
uLong size;
{
+ (void)opaque; // Unused
uLong ret;
ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
return ret;
@@ -109,6 +111,7 @@ uLong ZCALLBACK fwrite_file_func (opaque, stream, buf, size)
const void* buf;
uLong size;
{
+ (void)opaque; // Unused
uLong ret;
ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
return ret;
@@ -118,6 +121,7 @@ long ZCALLBACK ftell_file_func (opaque, stream)
voidpf opaque;
voidpf stream;
{
+ (void)opaque; // Unused
long ret;
ret = ftell((FILE *)stream);
return ret;
@@ -129,6 +133,7 @@ long ZCALLBACK fseek_file_func (opaque, stream, offset, origin)
uLong offset;
int origin;
{
+ (void)opaque; // Unused
int fseek_origin=0;
long ret;
switch (origin)
@@ -153,6 +158,7 @@ int ZCALLBACK fclose_file_func (opaque, stream)
voidpf opaque;
voidpf stream;
{
+ (void)opaque; // Unused
int ret;
ret = fclose((FILE *)stream);
return ret;
@@ -162,6 +168,7 @@ int ZCALLBACK ferror_file_func (opaque, stream)
voidpf opaque;
voidpf stream;
{
+ (void)opaque; // Unused
int ret;
ret = ferror((FILE *)stream);
return ret;