libctf, testsuite: fix various warnings in tests
These warnings are all off by default, but if they do fire you get spurious ERRORs when running make check-libctf. libctf/ChangeLog 2021-09-27 Nick Alcock <nick.alcock@oracle.com> * testsuite/libctf-lookup/enum-symbol.c: Remove unused label. * testsuite/libctf-lookup/conflicting-type-syms.c: Remove unused variables. * testsuite/libctf-regression/pptrtab.c: Likewise. * testsuite/libctf-regression/type-add-unnamed-struct.c: Likewise. * testsuite/libctf-writable/pptrtab.c: Likewise. * testsuite/libctf-writable/reserialize-strtab-corruption.c: Likewise. * testsuite/libctf-regression/nonstatic-var-section-ld-r.c: Fix format string. * testsuite/libctf-regression/nonstatic-var-section-ld.c: Likewise. * testsuite/libctf-regression/nonstatic-var-section-ld.lk: Adjust. * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Fix initializer.
This commit is contained in:
parent
b62d5edd0a
commit
e695879142
11 changed files with 28 additions and 18 deletions
|
@ -12,9 +12,6 @@ main (int argc, char *argv[])
|
|||
int err;
|
||||
ctf_id_t a, b, ignore1, ignore2, tmp;
|
||||
char *foo;
|
||||
ctf_next_t *i = NULL;
|
||||
const char *name;
|
||||
int val;
|
||||
|
||||
if (argc != 2)
|
||||
{
|
||||
|
|
|
@ -57,9 +57,6 @@ main (int argc, char *argv[])
|
|||
fprintf (stderr, "%s: Symbol re-lookup error (caching bug): %s\n", argv[0],
|
||||
ctf_errmsg (err));
|
||||
return 1;
|
||||
err:
|
||||
fprintf (stderr, "Lookup failed: %s\n", ctf_errmsg (ctf_errno (fp)));
|
||||
return 1;
|
||||
nerr:
|
||||
fprintf (stderr, "iteration failed: %s\n", ctf_errmsg (ctf_errno (fp)));
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue