Fix warnings found by Emscripten 3.1.10
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and `-Wliteral-range` warnings.
This commit is contained in:
parent
ccb583be09
commit
d8935b27a9
10 changed files with 15 additions and 47 deletions
|
|
@ -635,8 +635,6 @@ Error ResourceLoaderBinary::load() {
|
|||
return error;
|
||||
}
|
||||
|
||||
int stage = 0;
|
||||
|
||||
for (int i = 0; i < external_resources.size(); i++) {
|
||||
String path = external_resources[i].path;
|
||||
|
||||
|
|
@ -674,8 +672,6 @@ Error ResourceLoaderBinary::load() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage++;
|
||||
}
|
||||
|
||||
for (int i = 0; i < internal_resources.size(); i++) {
|
||||
|
|
@ -700,7 +696,6 @@ Error ResourceLoaderBinary::load() {
|
|||
Ref<Resource> cached = ResourceCache::get(path);
|
||||
if (cached.is_valid()) {
|
||||
//already loaded, don't do anything
|
||||
stage++;
|
||||
error = OK;
|
||||
internal_index_cache[path] = cached;
|
||||
continue;
|
||||
|
|
@ -817,7 +812,6 @@ Error ResourceLoaderBinary::load() {
|
|||
#ifdef TOOLS_ENABLED
|
||||
res->set_edited(false);
|
||||
#endif
|
||||
stage++;
|
||||
|
||||
if (progress) {
|
||||
*progress = (i + 1) / float(internal_resources.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue