libctf, testsuite: fix various warnings in tests
authorNick Alcock <nick.alcock@oracle.com>
Mon, 27 Sep 2021 19:31:21 +0000 (20:31 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 27 Sep 2021 19:31:26 +0000 (20:31 +0100)
commite695879142a8e8b9f7e220a7919f38ad3ee614e6
treec389be608e0687587cde8916d165e291f7285f97
parentb62d5edd0a5794a6ba142ed66dbba366546dc307
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.
libctf/ChangeLog
libctf/testsuite/libctf-lookup/conflicting-type-syms.c
libctf/testsuite/libctf-lookup/enum-symbol.c
libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r.c
libctf/testsuite/libctf-regression/nonstatic-var-section-ld.c
libctf/testsuite/libctf-regression/nonstatic-var-section-ld.lk
libctf/testsuite/libctf-regression/pptrtab.c
libctf/testsuite/libctf-regression/type-add-unnamed-struct.c
libctf/testsuite/libctf-writable/pptrtab.c
libctf/testsuite/libctf-writable/reserialize-strtab-corruption.c
libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c