]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix compilation errors with clang in gdb.base/advance.c
authorGary Benson <gbenson@redhat.com>
Tue, 21 Apr 2020 15:56:09 +0000 (16:56 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 21 Apr 2020 15:56:09 +0000 (16:56 +0100)
commitb32102f6586da0082663c61fed9af2c5aa8b5ba7
treeb131a16cdff87d9034e71845dc9f34c7354e7f7b
parentd43b7a2d5718f303a9e284f0d14219f05fbcfa17
Fix compilation errors with clang in gdb.base/advance.c

Clang fails to compile the above file, with the following errors:
  warning: control reaches end of non-void function [-Wreturn-type]
  warning: too many arguments in call to 'func'

This prevents the following testcases from executing:
  gdb.base/advance.exp
  gdb.base/until-nodebug.exp

gdb/testsuite/ChangeLog:

* gdb.base/advance.c (func): New argument, to match call site.
(func2, func3): Add return statements.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/advance.c