You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -68,7 +68,7 @@ void WebRTCDataChannelJS::_on_error() {
|
||||
}
|
||||
|
||||
void WebRTCDataChannelJS::_on_message(uint8_t *p_data, uint32_t p_size, bool p_is_string) {
|
||||
if (in_buffer.space_left() < p_size + 5) {
|
||||
if (in_buffer.space_left() < (int)(p_size + 5)) {
|
||||
ERR_EXPLAIN("Buffer full! Dropping data");
|
||||
ERR_FAIL();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user