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:
Nick Alcock
2025-10-18 13:26:24 +01:00
parent 50861d98f8
commit b9e48061e0

View File

@@ -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;