[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 06/27] Eliminate unused parameters in tests
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 06/27] Eliminate unused parameters in tests |
Date: |
Wed, 22 Aug 2012 14:28:32 +0300 |
---
tests/Gtest-nocalloc.c | 2 +-
tests/Gtest-nomalloc.c | 2 +-
tests/mapper.c | 2 +-
tests/test-ptrace.c | 10 +++++-----
tests/test-varargs.c | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/Gtest-nocalloc.c b/tests/Gtest-nocalloc.c
index cf1d3f7..d16cf0b 100644
--- a/tests/Gtest-nocalloc.c
+++ b/tests/Gtest-nocalloc.c
@@ -111,7 +111,7 @@ foo1 (void)
}
int
-main (int argc, char **argv)
+main (void)
{
int i, num_errors;
diff --git a/tests/Gtest-nomalloc.c b/tests/Gtest-nomalloc.c
index 70faa36..db77854 100644
--- a/tests/Gtest-nomalloc.c
+++ b/tests/Gtest-nomalloc.c
@@ -101,7 +101,7 @@ foo1 ()
}
int
-main (int argc, char **argv)
+main (void)
{
foo1();
diff --git a/tests/mapper.c b/tests/mapper.c
index 6edce71..e84697b 100644
--- a/tests/mapper.c
+++ b/tests/mapper.c
@@ -41,7 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. */
#endif
int
-main (int argc, char **argv)
+main (void)
{
long n = 0;
diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c
index 7d76200..17a1b61 100644
--- a/tests/test-ptrace.c
+++ b/tests/test-ptrace.c
@@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. */
#ifdef HAVE_TTRACE
int
-main (int argc, char **argv)
+main (void)
{
printf ("FAILURE: ttrace() not supported yet\n");
return -1;
@@ -73,7 +73,7 @@ static struct UPT_info *ui;
static int killed;
void
-do_backtrace (pid_t target_pid)
+do_backtrace (void)
{
unw_word_t ip, sp, start_ip = 0, off;
int n = 0, ret;
@@ -301,7 +301,7 @@ main (int argc, char **argv)
#endif
else
{
- do_backtrace (target_pid);
+ do_backtrace ();
#if HAVE_DECL_PTRACE_SINGLESTEP
ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
#elif HAVE_DECL_PT_STEP
@@ -314,7 +314,7 @@ main (int argc, char **argv)
case SYSCALL:
if (!state)
- do_backtrace (target_pid);
+ do_backtrace ();
state ^= 1;
#if HAVE_DECL_PTRACE_SYSCALL
ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig);
@@ -326,7 +326,7 @@ main (int argc, char **argv)
break;
case INSTRUCTION:
- do_backtrace (target_pid);
+ do_backtrace ();
#if HAVE_DECL_PTRACE_SINGLESTEP
ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
#elif HAVE_DECL_PT_STEP
diff --git a/tests/test-varargs.c b/tests/test-varargs.c
index b712f5d..9366461 100644
--- a/tests/test-varargs.c
+++ b/tests/test-varargs.c
@@ -45,7 +45,7 @@ a (int d, ...)
}
int
-main (int argc, char **argv)
+main (void)
{
a (5, 3, 4, 5, 6);
return 0;
--
1.7.9.5
- [Libunwind-devel] [PATCH 20/27] ARM: fix non-signal-frame local unw_resume() due to compiler optimization cleverness, (continued)
- [Libunwind-devel] [PATCH 20/27] ARM: fix non-signal-frame local unw_resume() due to compiler optimization cleverness, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 21/27] ARM: fix with-signal-frame local unw_resume(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 24/27] Flush icache with __builtin___clear_cache() in tests when compiling with GCC, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 26/27] Fix function name duplication in Debug() output, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 27/27] Add missing newline to debug message in _UCD_access_reg_linux.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 02/27] HPPA: add `global_cache' member to unw_addr_space struct, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 09/27] Run `autoupdate' to stop using obsoleted macros in `configure.in', Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 01/27] HPPA: fix tdep_put_unwind_info() macro, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 06/27] Eliminate unused parameters in tests,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 07/27] Annotate unused parameters in tests, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 03/27] HPPA: include `mempool.h' in `libunwind_i.h', Tommi Rantala, 2012/08/22
- Re: [Libunwind-devel] [PATCH 00/27] Misc fixes II, Arun Sharma, 2012/08/26