summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
committerTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
commitfb9dcc629630fe77840574088412eeb12b8d7ddb (patch)
treebb6735fa053ee26b43c09455eccd20a19fb8b1b6 /tests
parentdb019a2c4aa8a7bbfad0dd380717a1d6567d2e82 (diff)
downloaddimension-fb9dcc629630fe77840574088412eeb12b8d7ddb.tar.xz
Fix some -W{strict,missing}-prototypes warnings.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/error.c2
-rw-r--r--tests/libdimension/gl.c2
-rw-r--r--tests/libdimension/png.c2
-rw-r--r--tests/libdimension/prtree.c6
-rw-r--r--tests/libdimension/render.c6
-rw-r--r--tests/libdimension/warning.c2
6 files changed, 10 insertions, 10 deletions
diff --git a/tests/libdimension/error.c b/tests/libdimension/error.c
index e5b7b2a..e8100f0 100644
--- a/tests/libdimension/error.c
+++ b/tests/libdimension/error.c
@@ -23,7 +23,7 @@
#include <stdlib.h>
int
-main()
+main(void)
{
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
dmnsn_error(DMNSN_SEVERITY_LOW, "This error is expected.");
diff --git a/tests/libdimension/gl.c b/tests/libdimension/gl.c
index 8177ff6..71ba64e 100644
--- a/tests/libdimension/gl.c
+++ b/tests/libdimension/gl.c
@@ -22,7 +22,7 @@
#include <unistd.h>
int
-main()
+main(void)
{
/* Set the resilience low for tests */
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
diff --git a/tests/libdimension/png.c b/tests/libdimension/png.c
index f28d50f..a3e4da8 100644
--- a/tests/libdimension/png.c
+++ b/tests/libdimension/png.c
@@ -22,7 +22,7 @@
#include <stdio.h>
int
-main()
+main(void)
{
/* Set the resilience low for tests */
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
diff --git a/tests/libdimension/prtree.c b/tests/libdimension/prtree.c
index 1c69fd4..2cf259f 100644
--- a/tests/libdimension/prtree.c
+++ b/tests/libdimension/prtree.c
@@ -28,7 +28,7 @@
unsigned int calls = 0;
-bool
+static bool
dmnsn_fake_intersection_fn(const dmnsn_object *object, dmnsn_line line,
dmnsn_intersection *intersection)
{
@@ -37,7 +37,7 @@ dmnsn_fake_intersection_fn(const dmnsn_object *object, dmnsn_line line,
return true;
}
-void
+static void
dmnsn_randomize_bounding_box(dmnsn_object *object)
{
dmnsn_vector a, b;
@@ -55,7 +55,7 @@ dmnsn_randomize_bounding_box(dmnsn_object *object)
}
int
-main()
+main(void)
{
const size_t nobjects = 128;
dmnsn_scene *scene = dmnsn_new_scene();
diff --git a/tests/libdimension/render.c b/tests/libdimension/render.c
index e227c7a..29e733e 100644
--- a/tests/libdimension/render.c
+++ b/tests/libdimension/render.c
@@ -25,8 +25,8 @@
/*
* Test scene -- code version of tests/dimension/demo.pov
*/
-dmnsn_scene *
-dmnsn_new_test_scene()
+static dmnsn_scene *
+dmnsn_new_test_scene(void)
{
/* Allocate a new scene */
dmnsn_scene *scene = dmnsn_new_scene();
@@ -110,7 +110,7 @@ dmnsn_new_test_scene()
}
int
-main()
+main(void)
{
bool have_png = true, have_gl = true;
diff --git a/tests/libdimension/warning.c b/tests/libdimension/warning.c
index 128f56f..d221076 100644
--- a/tests/libdimension/warning.c
+++ b/tests/libdimension/warning.c
@@ -23,7 +23,7 @@
#include <stdlib.h>
int
-main()
+main(void)
{
if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) {
return EXIT_FAILURE;