Skip to content

Commit

Permalink
i#1569: Fix compilation errors with GCC11 and "-O3" option (#6311)
Browse files Browse the repository at this point in the history
GCC11 has stricter requirements for uninitialised
variables in -O3 mode

Issue: #1569
  • Loading branch information
philramsey-arm authored Sep 19, 2023
1 parent fa58659 commit bbd4ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/arch/arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3893,7 +3893,7 @@ get_time()
bool
is_ibl_routine_type(dcontext_t *dcontext, cache_pc target, ibl_branch_type_t branch_type)
{
ibl_type_t ibl_type;
ibl_type_t ibl_type = { 0 };
DEBUG_DECLARE(bool is_ibl =)
get_ibl_routine_type_ex(dcontext, target, &ibl_type _IF_X86_64(NULL));
ASSERT(is_ibl);
Expand Down
2 changes: 1 addition & 1 deletion core/unix/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -10503,7 +10503,7 @@ wait_for_event(event_t e, int timeout_ms)
#ifdef DEBUG
dcontext_t *dcontext = get_thread_private_dcontext();
#endif
uint64 start_time, cur_time;
uint64 start_time = 0, cur_time = 0;
if (timeout_ms > 0)
start_time = query_time_millis();
/* Use a user-space event on Linux, a kernel event on Windows. */
Expand Down

0 comments on commit bbd4ffa

Please sign in to comment.