mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-12 04:29:05 +08:00
Suppress clang warnings.
This commit is contained in:
parent
c89fc5f06b
commit
48f6db0994
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# Use this for strict compilation check(will work on clang 3.8+)
|
# Use this for strict compilation check(will work on clang 3.8+)
|
||||||
#EXTRA_CXXFLAGS := -fsanitize=address -Wall -Werror -Weverything -Wno-c++11-long-long
|
#EXTRA_CXXFLAGS := -fsanitize=address -Wall -Werror -Weverything -Wno-c++11-long-long -Wno-c++98-compat
|
||||||
|
|
||||||
all:
|
all:
|
||||||
clang++ $(EXTRA_CXXFLAGS) -std=c++11 -g -O0 -o loader_example loader_example.cc
|
clang++ $(EXTRA_CXXFLAGS) -std=c++11 -g -O0 -o loader_example loader_example.cc
|
||||||
|
@ -262,7 +262,7 @@ static std::string PrintValue(const std::string &name,
|
|||||||
} else if (value.IsArray()) {
|
} else if (value.IsArray()) {
|
||||||
ss << Indent(indent) << name << " [ ";
|
ss << Indent(indent) << name << " [ ";
|
||||||
for (size_t i = 0; i < value.Size(); i++) {
|
for (size_t i = 0; i < value.Size(); i++) {
|
||||||
ss << PrintValue("", value.Get(i), indent + 1, /* tag */false);
|
ss << PrintValue("", value.Get(int(i)), indent + 1, /* tag */false);
|
||||||
if (i != (value.ArrayLen()-1)) {
|
if (i != (value.ArrayLen()-1)) {
|
||||||
ss << ", ";
|
ss << ", ";
|
||||||
}
|
}
|
||||||
|
@ -1610,7 +1610,7 @@ static bool ParseJsonAsValue(Value* ret, const json &o)
|
|||||||
break;
|
break;
|
||||||
case json::value_t::null:
|
case json::value_t::null:
|
||||||
case json::value_t::discarded:
|
case json::value_t::discarded:
|
||||||
default:
|
//default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret)
|
if (ret)
|
||||||
@ -1905,6 +1905,8 @@ static bool ParseParameterProperty(Parameter *param, std::string *err,
|
|||||||
|
|
||||||
static bool ParseExtensionsProperty(ExtensionMap *ret, std::string* err, const json &o)
|
static bool ParseExtensionsProperty(ExtensionMap *ret, std::string* err, const json &o)
|
||||||
{
|
{
|
||||||
|
(void)err;
|
||||||
|
|
||||||
json::const_iterator it = o.find("extensions");
|
json::const_iterator it = o.find("extensions");
|
||||||
if (it == o.end()) {
|
if (it == o.end()) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user