Get rid of some clang compiler warnings.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5451 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2017-04-22 10:19:56 +00:00
parent ae61c51c65
commit 8990dbcf28
5 changed files with 29 additions and 22 deletions

View File

@ -26,7 +26,7 @@ namespace scene
using namespace core;
using namespace video;
CB3DMeshWriter::CB3DMeshWriter(io::IFileSystem *fs): FileSystem(fs)
CB3DMeshWriter::CB3DMeshWriter()
{
#ifdef _DEBUG
setDebugName("CB3DMeshWriter");

View File

@ -8,7 +8,7 @@
#define __IRR_B3D_MESH_WRITER_H_INCLUDED__
#include "IMeshWriter.h"
#include "IFileSystem.h"
#include "IWriteFile.h"
#include "SB3DStructs.h"
#include "ISkinnedMesh.h"
@ -24,7 +24,7 @@ class CB3DMeshWriter : public IMeshWriter
{
public:
CB3DMeshWriter(io::IFileSystem *fs);
CB3DMeshWriter();
//! Returns the type of the mesh writer
virtual EMESH_WRITER_TYPE getType() const;
@ -33,7 +33,6 @@ public:
virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE);
private:
io::IFileSystem *FileSystem;
u32 Size;
void writeJointChunk(io::IWriteFile* file, ISkinnedMesh* mesh , ISkinnedMesh::SJoint* joint);

View File

@ -269,7 +269,7 @@ unsigned long process_comp(
unsigned char *out_buf, int out_buf_size)
{
// we start out with 3 repeating bytes
register int len = 3;
int len = 3;
unsigned char ch;

View File

@ -2573,7 +2573,7 @@ IMeshWriter* CSceneManager::createMeshWriter(EMESH_WRITER_TYPE type)
case EMWT_B3D:
#ifdef _IRR_COMPILE_WITH_B3D_WRITER_
return new CB3DMeshWriter(FileSystem);
return new CB3DMeshWriter();
#else
return 0;
#endif

View File

@ -492,8 +492,16 @@ IReadFile* CZipReader::createAndOpenFile(const io::path& filename)
//! Used for LZMA decompression. The lib has no default memory management
namespace
{
void *SzAlloc(void *p, size_t size) { p = p; return malloc(size); }
void SzFree(void *p, void *address) { p = p; free(address); }
void *SzAlloc(void *p, size_t size)
{
(void)p; // disable unused variable warnings
return malloc(size);
}
void SzFree(void *p, void *address)
{
(void)p; // disable unused variable warnings
free(address);
}
ISzAlloc lzmaAlloc = { SzAlloc, SzFree };
}
#endif