Fix a couple GCC 14 -Wmaybe-uninitialized
warnings
This commit is contained in:
parent
82cedc83c9
commit
247a481001
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ Error PacketPeerUDP::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t size = 0;
|
uint32_t size = 0;
|
||||||
uint8_t ipv6[16];
|
uint8_t ipv6[16] = {};
|
||||||
rb.read(ipv6, 16, true);
|
rb.read(ipv6, 16, true);
|
||||||
packet_ip.set_ipv6(ipv6);
|
packet_ip.set_ipv6(ipv6);
|
||||||
rb.read((uint8_t *)&packet_port, 4, true);
|
rb.read((uint8_t *)&packet_port, 4, true);
|
||||||
|
|
|
@ -169,7 +169,7 @@ struct Texture {
|
||||||
TYPE_3D
|
TYPE_3D
|
||||||
};
|
};
|
||||||
|
|
||||||
Type type;
|
Type type = TYPE_2D;
|
||||||
RS::TextureLayeredType layered_type = RS::TEXTURE_LAYERED_2D_ARRAY;
|
RS::TextureLayeredType layered_type = RS::TEXTURE_LAYERED_2D_ARRAY;
|
||||||
|
|
||||||
GLenum target = GL_TEXTURE_2D;
|
GLenum target = GL_TEXTURE_2D;
|
||||||
|
|
Loading…
Reference in a new issue