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.
+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.
int func2 ()
{
x = 6;
+ return x;
}
-void func()
+void func(int c)
{
x = x + 5;
func2 ();
int func3 ()
{
x = 4;
+ return x;
}
void marker1 ()