Skip to content

Commit

Permalink
Merge pull request #53213 from akien-mga/3.x-fix-gcc-11-Wextra
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Sep 29, 2021
2 parents 01ae488 + 6bdd84b commit 9b4e62d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions core/io/compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ int Compression::decompress_dynamic(PoolVector<uint8_t> *p_dst, int p_max_dst_si
switch (ret) {
case Z_NEED_DICT:
ret = Z_DATA_ERROR;
FALLTHROUGH;
case Z_DATA_ERROR:
case Z_MEM_ERROR:
case Z_STREAM_ERROR:
Expand Down
2 changes: 1 addition & 1 deletion core/math/convex_hull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ void ConvexHullInternal::compute_internal(int32_t p_start, int32_t p_end, Interm

return;
}
FALLTHROUGH;
}
// lint -fallthrough
case 1: {
Vertex *v = original_vertices[p_start];
v->edges = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gles2/rasterizer_gles2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void RasterizerGLES2::set_boot_image(const Ref<Image> &p_image, const Color &p_c
canvas->canvas_begin();

RID texture = storage->texture_create();
storage->texture_allocate(texture, p_image->get_width(), p_image->get_height(), 0, p_image->get_format(), VS::TEXTURE_TYPE_2D, p_use_filter ? VS::TEXTURE_FLAG_FILTER : 0);
storage->texture_allocate(texture, p_image->get_width(), p_image->get_height(), 0, p_image->get_format(), VS::TEXTURE_TYPE_2D, p_use_filter ? (uint32_t)VS::TEXTURE_FLAG_FILTER : 0);
storage->texture_set_data(texture, p_image);

Rect2 imgrect(0, 0, p_image->get_width(), p_image->get_height());
Expand Down
2 changes: 1 addition & 1 deletion drivers/gles2/shader_gles2.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int ShaderGLES2::_get_uniform(int p_which) const {

void ShaderGLES2::_set_conditional(int p_which, bool p_value) {
ERR_FAIL_INDEX(p_which, conditional_count);
ERR_FAIL_INDEX(static_cast<unsigned int>(p_which), sizeof(new_conditional_version.version) * 8);
ERR_FAIL_INDEX(p_which, (int)sizeof(new_conditional_version.version) * 8);

if (p_value) {
new_conditional_version.version |= (uint64_t(1) << p_which);
Expand Down
2 changes: 1 addition & 1 deletion drivers/gles3/rasterizer_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void RasterizerGLES3::set_boot_image(const Ref<Image> &p_image, const Color &p_c
canvas->canvas_begin();

RID texture = storage->texture_create();
storage->texture_allocate(texture, p_image->get_width(), p_image->get_height(), 0, p_image->get_format(), VS::TEXTURE_TYPE_2D, p_use_filter ? VS::TEXTURE_FLAG_FILTER : 0);
storage->texture_allocate(texture, p_image->get_width(), p_image->get_height(), 0, p_image->get_format(), VS::TEXTURE_TYPE_2D, p_use_filter ? (uint32_t)VS::TEXTURE_FLAG_FILTER : 0);
storage->texture_set_data(texture, p_image);

Rect2 imgrect(0, 0, p_image->get_width(), p_image->get_height());
Expand Down

0 comments on commit 9b4e62d

Please sign in to comment.