[PATCH, gdb/testsuite] Fix wrong return type in tests

Thomas Preudhomme thomas.preudhomme@foss.arm.com
Wed Nov 29 10:48:00 GMT 2017


Hi,

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.

ChangeLog entries is as follows:

*** gdb/testsuite/ChangeLog ***

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

	* 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.

Testing: Tests PASS on arm-none-eabi with this fix but are marked
UNTESTED without.

Committed as obvious.

Best regards,

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_return_type_tests.patch
Type: text/x-patch
Size: 1888 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20171129/fe10f94d/attachment.bin>


More information about the Gdb-patches mailing list