summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-21 09:20:46 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:51:22 +0300
commite9f161a677087dfdf8e543b9e70c7131ac3fd942 (patch)
tree99161963d2c2cba290fbfac8998c3f6f81676eac
parent890e23eb9d3ffd9be2a025189a21794b5ed0e0ff (diff)
downloadlibunwind-e9f161a677087dfdf8e543b9e70c7131ac3fd942.tar.gz
Replace empty argument lists with `void' in tests
-rw-r--r--tests/Gtest-nomalloc.c6
-rw-r--r--tests/Lrs-race.c2
-rw-r--r--tests/Ltest-nocalloc.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/Gtest-nomalloc.c b/tests/Gtest-nomalloc.c
index f4ebe2d3..5b97fc70 100644
--- a/tests/Gtest-nomalloc.c
+++ b/tests/Gtest-nomalloc.c
@@ -79,19 +79,19 @@ do_backtrace (void)
}
void
-foo3 ()
+foo3 (void)
{
do_backtrace ();
}
void
-foo2 ()
+foo2 (void)
{
foo3 ();
}
void
-foo1 ()
+foo1 (void)
{
foo2 ();
}
diff --git a/tests/Lrs-race.c b/tests/Lrs-race.c
index e39a62bd..6fe49720 100644
--- a/tests/Lrs-race.c
+++ b/tests/Lrs-race.c
@@ -1471,7 +1471,7 @@ bar(void *p UNUSED)
return NULL;
}
-int doit ()
+int doit (void)
{
pthread_t tid[NTHREAD];
int i;
diff --git a/tests/Ltest-nocalloc.c b/tests/Ltest-nocalloc.c
index aca032ca..ee5ddafb 100644
--- a/tests/Ltest-nocalloc.c
+++ b/tests/Ltest-nocalloc.c
@@ -90,13 +90,13 @@ do_backtrace (void)
}
void
-foo3 ()
+foo3 (void)
{
do_backtrace ();
}
void
-foo2 ()
+foo2 (void)
{
foo3 ();
}