mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Fix compilation warnings in JS and Windows builds
Warnings raised by Emscripten 1.38.0 and MinGW64 5.0.4 / GCC 8.3.0. JS can now build with `werror=yes warnings=extra`. MinGW64 still has a few warnings to resolve with `warnings=extra`, and only one with `warnings=all`. Part of #29033 and #29801.
This commit is contained in:
parent
0a3c21d999
commit
68735d2a88
11 changed files with 44 additions and 39 deletions
|
@ -99,7 +99,7 @@ Error AudioDriverJavaScript::init() {
|
|||
return FAILED;
|
||||
}
|
||||
|
||||
if (!internal_buffer || memarr_len(internal_buffer) != buffer_length * channel_count) {
|
||||
if (!internal_buffer || (int)memarr_len(internal_buffer) != buffer_length * channel_count) {
|
||||
if (internal_buffer)
|
||||
memdelete_arr(internal_buffer);
|
||||
internal_buffer = memnew_arr(float, buffer_length *channel_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue