Suppress clang compiler warnings.

This commit is contained in:
Syoyo Fujita 2016-06-21 21:18:12 +09:00
parent c261563b0b
commit cf6e07b1ec
2 changed files with 5 additions and 1 deletions

View File

@ -566,7 +566,7 @@ static void Dump(const tinygltf::Scene &scene) {
it->second.source.end());
for (; sourceIt != sourceItEnd; ++sourceIt) {
shader_source += *sourceIt;
shader_source += static_cast<char>(*sourceIt);
if (*sourceIt == '\n') {
shader_source += Indent(3);
}

View File

@ -168,6 +168,7 @@ typedef struct {
int wrapS;
int wrapT;
int wrapR; // TinyGLTF extension
int pad0;
} Sampler;
typedef struct {
@ -277,6 +278,7 @@ typedef struct {
typedef struct {
std::string name;
int type;
int pad0;
std::vector<unsigned char> source;
} Shader;
@ -289,9 +291,11 @@ typedef struct {
typedef struct {
int count;
int pad0;
std::string node;
std::string semantic;
int type;
int pad1;
Parameter value;
} TechniqueParameter;