]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: fix testsuite bugs revealed by -Wall
authorNick Alcock <nick.alcock@oracle.com>
Wed, 19 Jun 2024 13:06:26 +0000 (14:06 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 19 Jun 2024 14:51:24 +0000 (15:51 +0100)
commitb84ffc176d3ab90a5dd42e406f84b2207f2782ca
tree7fb14515c901b47af902f63096bd9d75fced6343
parentea4e03c0a9f5ed8574dcaa434cd979a6f92f5c1f
libctf: fix testsuite bugs revealed by -Wall

Most of these are harmless, but some of the type confusions and especially
a missing ctf_strerror() on an error path were actual bugs that could
have resulted in test failures crashing rather than printing an error
message.

libctf/
* testsuite/libctf-lookup/enumerator-iteration.c: Fix type
        confusion, signedness confusion and a missing ctf_errmsg().
* testsuite/libctf-regression/libctf-repeat-cu-main.c: Return 0 from
        the test function.
* testsuite/libctf-regression/open-error-free.c: Fix signedness
        confusion.
* testsuite/libctf-regression/zrewrite.c: Remove unused label.
libctf/testsuite/libctf-lookup/enumerator-iteration.c
libctf/testsuite/libctf-regression/libctf-repeat-cu-main.c
libctf/testsuite/libctf-regression/open-error-free.c
libctf/testsuite/libctf-regression/zrewrite.c