3535#include "sxbp/serialise.h"
3636
3737
38- bool test_sxbp_change_direction () {
38+ static bool test_sxbp_change_direction (void ) {
3939 if (sxbp_change_direction (SXBP_UP , SXBP_CLOCKWISE ) != SXBP_RIGHT ) {
4040 return false;
4141 } else if (sxbp_change_direction (SXBP_UP , SXBP_ANTI_CLOCKWISE ) != SXBP_LEFT ) {
@@ -53,7 +53,7 @@ bool test_sxbp_change_direction() {
5353 }
5454}
5555
56- bool test_sxbp_init_spiral () {
56+ static bool test_sxbp_init_spiral (void ) {
5757 // success / failure variable
5858 bool result = true;
5959 // build buffer of bytes for input data
@@ -99,7 +99,7 @@ bool test_sxbp_init_spiral() {
9999 return result ;
100100}
101101
102- bool test_sxbp_spiral_points () {
102+ static bool test_sxbp_spiral_points (void ) {
103103 // success variable
104104 bool success = true;
105105 // prepare input spiral struct
@@ -153,7 +153,7 @@ bool test_sxbp_spiral_points() {
153153 return success ;
154154}
155155
156- bool test_sxbp_cache_spiral_points_blank () {
156+ static bool test_sxbp_cache_spiral_points_blank (void ) {
157157 // success variable
158158 bool success = true;
159159 // prepare input spiral struct
@@ -207,7 +207,7 @@ bool test_sxbp_cache_spiral_points_blank() {
207207 return success ;
208208}
209209
210- bool test_sxbp_plot_spiral () {
210+ static bool test_sxbp_plot_spiral (void ) {
211211 // success / failure variable
212212 bool result = true;
213213 // build input and output structs
@@ -251,7 +251,7 @@ bool test_sxbp_plot_spiral() {
251251 return result ;
252252}
253253
254- bool test_sxbp_plot_spiral_partial () {
254+ static bool test_sxbp_plot_spiral_partial (void ) {
255255 // success / failure variable
256256 bool result = true;
257257 // build input and output structs
@@ -312,7 +312,7 @@ static void test_progress_callback(
312312// re-enable all warnings
313313#pragma GCC diagnostic pop
314314
315- bool test_sxbp_plot_spiral_progress_callback () {
315+ static bool test_sxbp_plot_spiral_progress_callback (void ) {
316316 // success / failure variable
317317 bool result = true;
318318 // build input structs
@@ -347,7 +347,7 @@ bool test_sxbp_plot_spiral_progress_callback() {
347347 return result ;
348348}
349349
350- bool test_sxbp_load_spiral () {
350+ static bool test_sxbp_load_spiral (void ) {
351351 // success / failure variable
352352 bool result = true;
353353 // build buffer of bytes for input data
@@ -431,7 +431,7 @@ bool test_sxbp_load_spiral() {
431431 return result ;
432432}
433433
434- bool test_sxbp_load_spiral_rejects_missing_magic_number () {
434+ static bool test_sxbp_load_spiral_rejects_missing_magic_number (void ) {
435435 // success / failure variable
436436 bool result = true;
437437 // build buffer of bytes for input data
@@ -456,7 +456,7 @@ bool test_sxbp_load_spiral_rejects_missing_magic_number() {
456456 return result ;
457457}
458458
459- bool test_sxbp_load_spiral_rejects_too_small_for_header () {
459+ static bool test_sxbp_load_spiral_rejects_too_small_for_header (void ) {
460460 // success / failure variable
461461 bool result = true;
462462 // build buffer of bytes for input data - should be smaller than 26
@@ -479,7 +479,7 @@ bool test_sxbp_load_spiral_rejects_too_small_for_header() {
479479 return result ;
480480}
481481
482- bool test_sxbp_load_spiral_rejects_too_small_data_section () {
482+ static bool test_sxbp_load_spiral_rejects_too_small_data_section (void ) {
483483 // success / failure variable
484484 bool result = true;
485485 // build buffer of bytes for input data
@@ -519,7 +519,7 @@ bool test_sxbp_load_spiral_rejects_too_small_data_section() {
519519 return result ;
520520}
521521
522- bool test_sxbp_load_spiral_rejects_wrong_version () {
522+ static bool test_sxbp_load_spiral_rejects_wrong_version (void ) {
523523 // success / failure variable
524524 bool result = true;
525525 // build buffer of bytes for input data
@@ -559,7 +559,7 @@ bool test_sxbp_load_spiral_rejects_wrong_version() {
559559 return result ;
560560}
561561
562- bool test_sxbp_dump_spiral () {
562+ static bool test_sxbp_dump_spiral (void ) {
563563 // success / failure variable
564564 bool result = true;
565565 // build input struct
@@ -643,7 +643,7 @@ bool test_sxbp_dump_spiral() {
643643// a function pointer to a test case function, and a string containing the
644644// test case's name. it will run the test case function and return the success
645645// or failure status, which should be stored in the test suite status bool.
646- bool run_test_case (
646+ static bool run_test_case (
647647 bool test_suite_state , bool (* test_case_func )(), char * test_case_name
648648) {
649649 printf ("%s: " , test_case_name );
@@ -653,7 +653,7 @@ bool run_test_case(
653653 return test_suite_state && test_result ;
654654}
655655
656- int main () {
656+ int main (void ) {
657657 // set up test suite status flag
658658 bool result = true;
659659 // call run_test_case() for each test case
0 commit comments