mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +01:00
Eliminate unused parameters in tests
This commit is contained in:
parent
6f374ccb5a
commit
47a99b6f00
5 changed files with 9 additions and 9 deletions
|
@ -111,7 +111,7 @@ foo1 (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (void)
|
||||||
{
|
{
|
||||||
int i, num_errors;
|
int i, num_errors;
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ foo1 ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (void)
|
||||||
{
|
{
|
||||||
foo1();
|
foo1();
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (void)
|
||||||
{
|
{
|
||||||
long n = 0;
|
long n = 0;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#ifdef HAVE_TTRACE
|
#ifdef HAVE_TTRACE
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (void)
|
||||||
{
|
{
|
||||||
printf ("FAILURE: ttrace() not supported yet\n");
|
printf ("FAILURE: ttrace() not supported yet\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -73,7 +73,7 @@ static struct UPT_info *ui;
|
||||||
static int killed;
|
static int killed;
|
||||||
|
|
||||||
void
|
void
|
||||||
do_backtrace (pid_t target_pid)
|
do_backtrace (void)
|
||||||
{
|
{
|
||||||
unw_word_t ip, sp, start_ip = 0, off;
|
unw_word_t ip, sp, start_ip = 0, off;
|
||||||
int n = 0, ret;
|
int n = 0, ret;
|
||||||
|
@ -301,7 +301,7 @@ main (int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
do_backtrace (target_pid);
|
do_backtrace ();
|
||||||
#if HAVE_DECL_PTRACE_SINGLESTEP
|
#if HAVE_DECL_PTRACE_SINGLESTEP
|
||||||
ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
|
ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
|
||||||
#elif HAVE_DECL_PT_STEP
|
#elif HAVE_DECL_PT_STEP
|
||||||
|
@ -314,7 +314,7 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
case SYSCALL:
|
case SYSCALL:
|
||||||
if (!state)
|
if (!state)
|
||||||
do_backtrace (target_pid);
|
do_backtrace ();
|
||||||
state ^= 1;
|
state ^= 1;
|
||||||
#if HAVE_DECL_PTRACE_SYSCALL
|
#if HAVE_DECL_PTRACE_SYSCALL
|
||||||
ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig);
|
ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig);
|
||||||
|
@ -326,7 +326,7 @@ main (int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case INSTRUCTION:
|
case INSTRUCTION:
|
||||||
do_backtrace (target_pid);
|
do_backtrace ();
|
||||||
#if HAVE_DECL_PTRACE_SINGLESTEP
|
#if HAVE_DECL_PTRACE_SINGLESTEP
|
||||||
ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
|
ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
|
||||||
#elif HAVE_DECL_PT_STEP
|
#elif HAVE_DECL_PT_STEP
|
||||||
|
|
|
@ -45,7 +45,7 @@ a (int d, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (void)
|
||||||
{
|
{
|
||||||
a (5, 3, 4, 5, 6);
|
a (5, 3, 4, 5, 6);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue