mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
libctf: tests: fix clang 21 uninitialized variable warning
The warning is spurious (the variable is unused in this situation),
but clang cannot know that.
libctf/ChangeLog:
* testsuite/libctf-writable/symtypetab-nonlinker-writeout.c:
Initialize dummy variable.
This commit is contained in:
@@ -25,7 +25,7 @@ try_maybe_reporting (int report)
|
||||
ctf_dict_t *fp;
|
||||
ctf_id_t func, func2, func3, base, base2, base3;
|
||||
ctf_encoding_t e = { CTF_INT_SIGNED, 0, sizeof (long) };
|
||||
ctf_id_t dummy;
|
||||
ctf_id_t dummy = 0;
|
||||
ctf_funcinfo_t fi;
|
||||
ctf_next_t *i = NULL;
|
||||
ctf_id_t symtype;
|
||||
|
||||
Reference in New Issue
Block a user