mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 09:23:40 +00:00
Fix use of unitialized variables
The second in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
parent
dac150108a
commit
9c63ab99f0
38 changed files with 129 additions and 86 deletions
|
@ -290,8 +290,8 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
|||
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
||||
uint64_t function_start_time;
|
||||
uint64_t function_call_time;
|
||||
uint64_t function_start_time = 0;
|
||||
uint64_t function_call_time = 0;
|
||||
|
||||
if (GDScriptLanguage::get_singleton()->profiling) {
|
||||
function_start_time = OS::get_singleton()->get_ticks_usec();
|
||||
|
@ -691,7 +691,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
|||
}
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
uint64_t call_time;
|
||||
uint64_t call_time = 0;
|
||||
|
||||
if (GDScriptLanguage::get_singleton()->profiling) {
|
||||
call_time = OS::get_singleton()->get_ticks_usec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue