mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
Fix warnings
This commit is contained in:
parent
caf952c252
commit
8c4237b520
5 changed files with 31 additions and 3 deletions
|
@ -15,9 +15,18 @@
|
||||||
#include <QDate>
|
#include <QDate>
|
||||||
#include <QtCore/QLoggingCategory>
|
#include <QtCore/QLoggingCategory>
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wsuggest-override"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <quazip5/quazipfile.h>
|
#include <quazip5/quazipfile.h>
|
||||||
#include <quazip5/quazipdir.h>
|
#include <quazip5/quazipdir.h>
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <AssetClient.h>
|
#include <AssetClient.h>
|
||||||
#include <AssetRequest.h>
|
#include <AssetRequest.h>
|
||||||
#include <AssetUpload.h>
|
#include <AssetUpload.h>
|
||||||
|
|
|
@ -11,8 +11,19 @@
|
||||||
|
|
||||||
#include "ContentSettingsBackupHandler.h"
|
#include "ContentSettingsBackupHandler.h"
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wsuggest-override"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <quazip5/quazip.h>
|
#include <quazip5/quazip.h>
|
||||||
#include <quazip5/quazipfile.h>
|
#include <quazip5/quazipfile.h>
|
||||||
|
#include <quazip5/quazipdir.h>
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
ContentSettingsBackupHandler::ContentSettingsBackupHandler(DomainServerSettingsManager& domainServerSettingsManager) :
|
ContentSettingsBackupHandler::ContentSettingsBackupHandler(DomainServerSettingsManager& domainServerSettingsManager) :
|
||||||
_settingsManager(domainServerSettingsManager)
|
_settingsManager(domainServerSettingsManager)
|
||||||
|
|
|
@ -13,9 +13,18 @@
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wsuggest-override"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <quazip5/quazip.h>
|
#include <quazip5/quazip.h>
|
||||||
#include <quazip5/quazipfile.h>
|
#include <quazip5/quazipfile.h>
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <OctreeDataUtils.h>
|
#include <OctreeDataUtils.h>
|
||||||
|
|
||||||
EntitiesBackupHandler::EntitiesBackupHandler(QString entitiesFilePath, QString entitiesReplacementFilePath) :
|
EntitiesBackupHandler::EntitiesBackupHandler(QString entitiesFilePath, QString entitiesReplacementFilePath) :
|
||||||
|
|
|
@ -510,7 +510,6 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& shapeInfo) {
|
||||||
// we backtranslate by the registration offset so we can apply that offset to the shapeInfo later
|
// we backtranslate by the registration offset so we can apply that offset to the shapeInfo later
|
||||||
localTransforms.push_back(invRegistraionOffset * jointMatrix * cluster.inverseBindMatrix);
|
localTransforms.push_back(invRegistraionOffset * jointMatrix * cluster.inverseBindMatrix);
|
||||||
} else {
|
} else {
|
||||||
glm::mat4 identity;
|
|
||||||
localTransforms.push_back(invRegistraionOffset);
|
localTransforms.push_back(invRegistraionOffset);
|
||||||
}
|
}
|
||||||
totalNumVertices += mesh.vertices.size();
|
totalNumVertices += mesh.vertices.size();
|
||||||
|
|
|
@ -397,7 +397,7 @@ ExtractedMesh FBXReader::extractMesh(const FBXNode& object, unsigned int& meshIn
|
||||||
}
|
}
|
||||||
|
|
||||||
// enumerate the vertices and construct the extracted mesh
|
// enumerate the vertices and construct the extracted mesh
|
||||||
for (int i = 0; i < numVertices; ++i) {
|
for (uint32_t i = 0; i < numVertices; ++i) {
|
||||||
draco::PointIndex vertexIndex(i);
|
draco::PointIndex vertexIndex(i);
|
||||||
|
|
||||||
if (positionAttribute) {
|
if (positionAttribute) {
|
||||||
|
@ -453,7 +453,7 @@ ExtractedMesh FBXReader::extractMesh(const FBXNode& object, unsigned int& meshIn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < dracoMesh->num_faces(); ++i) {
|
for (uint32_t i = 0; i < dracoMesh->num_faces(); ++i) {
|
||||||
// grab the material ID and texture ID for this face, if we have it
|
// grab the material ID and texture ID for this face, if we have it
|
||||||
auto& dracoFace = dracoMesh->face(draco::FaceIndex(i));
|
auto& dracoFace = dracoMesh->face(draco::FaceIndex(i));
|
||||||
auto& firstCorner = dracoFace[0];
|
auto& firstCorner = dracoFace[0];
|
||||||
|
|
Loading…
Reference in a new issue