use std::mem;
fn main() {
let a;
let a = a = true;
print!("{}", mem::size_of_val(&a));
}
m_AttachedPlayers.clear()
m_AttachedPlayers
and SetHookedPlayer
anywhere else? Do you perhaps mem_zero
the entire CGameCore
or something like that?SetHookedPlayer
while iterating over the set, I guessstd::set
mem_zero(&m_SendCore, sizeof(m_SendCore));
mem_zero(&m_ReckoningCore, sizeof(m_ReckoningCore));
(edited)m_SendCore = CCharacterCore();
m_ReckoningCore = CCharacterCore();
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-missing-field-initializers)
I guessadd_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-missing-field-initializers)
I guess [-Werror=uninitialized]
uninitialized
in DDNet's CMakeLists thoughCCharacterCore::Reset
function initialize those variable that are undefined according to the warnings?add_cxx_compiler_flag_if_supported
flags and see if that works already. Looks like we use -Wextra
which includes -Wuninitialized
add_cxx_compiler_flag_if_supported
instead of add_c_compiler_flag_if_supported
except for the one with OUR_FLAGS_DEP
function(add_cxx_compiler_flag_if_supported VARIABLE FLAG)
and following