Skip to content

Commit

Permalink
libdrgn: silence -Wmaybe-uninitialized false positive in drgn_object_…
Browse files Browse the repository at this point in the history
…from_dwarf_location()

Signed-off-by: Omar Sandoval <osandov@osandov.com>
  • Loading branch information
osandov committed Jan 4, 2024
1 parent e6fb8f1 commit 630d55a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libdrgn/dwarf_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -4238,7 +4238,9 @@ drgn_object_from_dwarf_location(struct drgn_program *prog,
goto out;

const void *src = NULL;
size_t src_size;
// Silence -Wmaybe-uninitialized false positive last seen with
// GCC 13.
size_t src_size = 0;

if (binary_buffer_has_next(&ctx.bb)) {
uint8_t opcode;
Expand Down

0 comments on commit 630d55a

Please sign in to comment.