From fb9dcc629630fe77840574088412eeb12b8d7ddb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 31 Jul 2010 21:26:29 -0600 Subject: Fix some -W{strict,missing}-prototypes warnings. --- tests/libdimension/error.c | 2 +- tests/libdimension/gl.c | 2 +- tests/libdimension/png.c | 2 +- tests/libdimension/prtree.c | 6 +++--- tests/libdimension/render.c | 6 +++--- tests/libdimension/warning.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/libdimension') 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 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 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 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 int -main() +main(void) { if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) { return EXIT_FAILURE; -- cgit v1.2.3