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.
This commit is contained in:
parent
d43b7a2d57
commit
b32102f658
|
@ -1,3 +1,8 @@
|
|||
2020-04-21 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* gdb.base/advance.c (func): New argument, to match call site.
|
||||
(func2, func3): Add return statements.
|
||||
|
||||
2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
|
||||
|
||||
* gdb.multi/run-only-second-inf.c: New file.
|
||||
|
|
|
@ -16,9 +16,10 @@ int bar (int y)
|
|||
int func2 ()
|
||||
{
|
||||
x = 6;
|
||||
return x;
|
||||
}
|
||||
|
||||
void func()
|
||||
void func(int c)
|
||||
{
|
||||
x = x + 5;
|
||||
func2 ();
|
||||
|
@ -27,6 +28,7 @@ void func()
|
|||
int func3 ()
|
||||
{
|
||||
x = 4;
|
||||
return x;
|
||||
}
|
||||
|
||||
void marker1 ()
|
||||
|
|
Loading…
Reference in New Issue