OSX warnings

This commit is contained in:
Atlante45 2016-05-02 17:18:57 -07:00
parent 2ef87557fc
commit eb21b9c5d7
3 changed files with 9 additions and 4 deletions

View file

@ -45,7 +45,6 @@ const glm::vec3 DEFAULT_LOCAL_AABOX_CORNER(-0.5f);
const glm::vec3 DEFAULT_LOCAL_AABOX_SCALE(1.0f);
const QString AvatarData::FRAME_NAME = "com.highfidelity.recording.AvatarData";
static std::once_flag frameTypeRegistration;
AvatarData::AvatarData() :
SpatiallyNestable(NestableType::Avatar, QUuid()),

View file

@ -334,7 +334,7 @@ public:
/// Returns the instructions for rendering of faces
DrawingInstructions Instructions(PrimitiveType primitive) const {
DrawingInstructions instr = this->MakeInstructions();
DrawingInstructions instr = MakeInstructions();
DrawOperation operation;
operation.method = DrawOperation::Method::DrawElements;
operation.mode = primitive;
@ -342,8 +342,8 @@ public:
operation.count = _prim_count * 3;
operation.restart_index = DrawOperation::NoRestartIndex();
operation.phase = 0;
this->AddInstruction(instr, operation);
return std::move(instr);
AddInstruction(instr, operation);
return instr;
}
/// Returns the instructions for rendering of faces

View file

@ -28,7 +28,11 @@
#ifdef _WIN32
#pragma warning(push)
#pragma warning( disable : 4068 )
#elif defined(Q_OS_MAC)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpessimizing-move"
#endif
#include <oglplus/gl.hpp>
#include <oglplus/all.hpp>
@ -40,6 +44,8 @@
#ifdef _WIN32
#pragma warning(pop)
#elif defined(Q_OS_MAC)
#pragma clang diagnostic pop
#endif
#include "NumericalConstants.h"