]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
[gdb/testsuite] Fix wrong return type in tests
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 29 Nov 2017 10:45:31 +0000 (10:45 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 29 Nov 2017 10:45:31 +0000 (10:45 +0000)
commitf106e10e5e80265e1c43532bba4cb997a7dfa022
tree0746a8a878d5db303c516d66d08b77d52c5e88cb
parentca39c2f4dd0fedcaaee348be7a913f0c14876796
[gdb/testsuite] Fix wrong return type in tests

The following tests are marked untested with latest GCC due to a warning
being emitted for a mismatch between their return type and what the lack
of return statement:

* gdb.cp/breakpoint.exp
* gdb.cp/psymtab-parameter.exp
* gdb.cp/shadow.exp

This patch fix the return type to match the function definitions.

2017-11-29  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gdb/testsuite/
* gdb.cp/breakpoint.cc (bar): Set return type to void.
* gdb.cp/psymtab-parameter.cc (func): Likewise.
* gdb.cp/psymtab-parameter.exp: Update comment regarding prototype of
func ().
* gdb.cp/shadow.cc (B.func): Return 0.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/breakpoint.cc
gdb/testsuite/gdb.cp/psymtab-parameter.cc
gdb/testsuite/gdb.cp/psymtab-parameter.exp
gdb/testsuite/gdb.cp/shadow.cc