Skip to content

Commit

Permalink
Merge pull request #94133 from akien-mga/fix-gcc14-Wmaybe-uninitialized
Browse files Browse the repository at this point in the history
Fix a couple GCC 14 `-Wmaybe-uninitialized` warnings
  • Loading branch information
akien-mga committed Jul 10, 2024
2 parents d197f17 + 247a481 commit 34d4c91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/io/packet_peer_udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Error PacketPeerUDP::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {
}

uint32_t size = 0;
uint8_t ipv6[16];
uint8_t ipv6[16] = {};
rb.read(ipv6, 16, true);
packet_ip.set_ipv6(ipv6);
rb.read((uint8_t *)&packet_port, 4, true);
Expand Down
2 changes: 1 addition & 1 deletion drivers/gles3/storage/texture_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct Texture {
TYPE_3D
};

Type type;
Type type = TYPE_2D;
RS::TextureLayeredType layered_type = RS::TEXTURE_LAYERED_2D_ARRAY;

GLenum target = GL_TEXTURE_2D;
Expand Down

0 comments on commit 34d4c91

Please sign in to comment.