From b73826b3c9e3c72893bbc07dc3d43e67928f9ea5 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 5 Sep 2019 17:59:17 +0200 Subject: =?UTF-8?q?remove=20warnings:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20core/testboxes.c:34:1:=20warning:?= =?UTF-8?q?=20function=20declaration=20isn=E2=80=99t=20a=20prototype=20[-W?= =?UTF-8?q?strict-prototypes]=20core/testboxes.c:103:1:=20warning:=20funct?= =?UTF-8?q?ion=20declaration=20isn=E2=80=99t=20a=20prototype=20[-Wstrict-p?= =?UTF-8?q?rototypes]=20core/testboxes.c:120:1:=20warning:=20function=20de?= =?UTF-8?q?claration=20isn=E2=80=99t=20a=20prototype=20[-Wstrict-prototype?= =?UTF-8?q?s]=20core/testboxes.c:148:1:=20warning:=20function=20declaratio?= =?UTF-8?q?n=20isn=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20cor?= =?UTF-8?q?e/testboxes.c:167:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:190:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:589:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:681:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:725:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:842:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:904:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:1021:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:1154:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:1243:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:1344:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]=20core/testb?= =?UTF-8?q?oxes.c:1396:1:=20warning:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype=20[-Wstrict-prototypes]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/testboxes.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/core/testboxes.c b/src/core/testboxes.c index 07aa571e..739d8a3e 100644 --- a/src/core/testboxes.c +++ b/src/core/testboxes.c @@ -31,7 +31,7 @@ #define NUM_RANDOM_RUNS 10000 static void -init_random_ness () +init_random_ness (void) { srand(time(NULL)); } @@ -100,7 +100,7 @@ new_xinerama_edge (int x, int y, int width, int height, int side_type) } static void -test_area () +test_area (void) { MetaRectangle temp; int i; @@ -117,7 +117,7 @@ test_area () } static void -test_intersect () +test_intersect (void) { MetaRectangle a = {100, 200, 50, 40}; MetaRectangle b = { 0, 50, 110, 152}; @@ -145,7 +145,7 @@ test_intersect () } static void -test_equal () +test_equal (void) { MetaRectangle a = {10, 12, 4, 18}; MetaRectangle b = a; @@ -164,7 +164,7 @@ test_equal () } static void -test_overlap_funcs () +test_overlap_funcs (void) { MetaRectangle temp1, temp2; int i; @@ -187,7 +187,7 @@ test_overlap_funcs () } static void -test_basic_fitting () +test_basic_fitting (void) { MetaRectangle temp1, temp2, temp3; int i; @@ -586,7 +586,7 @@ verify_lists_are_equal (GList *code, GList *answer) } static void -test_regions_okay () +test_regions_okay (void) { GList* region; GList* tmp; @@ -678,7 +678,7 @@ test_regions_okay () } static void -test_region_fitting () +test_region_fitting (void) { GList* region; MetaRectangle rect; @@ -722,7 +722,7 @@ test_region_fitting () } static void -test_clamping_to_region () +test_clamping_to_region (void) { GList* region; MetaRectangle rect; @@ -839,7 +839,7 @@ rect_overlaps_region (const GList *spanning_rects, gboolean time_to_print = FALSE; static void -test_clipping_to_region () +test_clipping_to_region (void) { GList* region; MetaRectangle rect, temp; @@ -901,7 +901,7 @@ test_clipping_to_region () } static void -test_shoving_into_region () +test_shoving_into_region (void) { GList* region; MetaRectangle rect, temp; @@ -1018,7 +1018,7 @@ verify_edge_lists_are_equal (GList *code, GList *answer) } static void -test_find_onscreen_edges () +test_find_onscreen_edges (void) { GList* edges; GList* tmp; @@ -1151,7 +1151,7 @@ test_find_onscreen_edges () } static void -test_find_nonintersected_xinerama_edges () +test_find_nonintersected_xinerama_edges (void) { GList* edges; GList* tmp; @@ -1240,7 +1240,7 @@ test_find_nonintersected_xinerama_edges () } static void -test_gravity_resize () +test_gravity_resize (void) { MetaRectangle oldrect, rect, temp; @@ -1341,7 +1341,7 @@ test_gravity_resize () } static void -test_find_closest_point_to_line () +test_find_closest_point_to_line (void) { double x1, y1, x2, y2, px, py, rx, ry; double answer_x, answer_y; @@ -1393,7 +1393,7 @@ test_find_closest_point_to_line () } int -main() +main(void) { init_random_ness (); test_area (); -- cgit v1.2.1