From 145b294b840e2c055f8660828290f2f43acce437 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 2 Feb 2021 11:43:06 +0100 Subject: [PATCH 1/2] added void cast --- cores/arduino/syscalls_sam3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/arduino/syscalls_sam3.c b/cores/arduino/syscalls_sam3.c index 6728c9e0..17fc5bfb 100644 --- a/cores/arduino/syscalls_sam3.c +++ b/cores/arduino/syscalls_sam3.c @@ -134,7 +134,8 @@ extern void _exit( int status ) { // printf is probably not set up by Arduino, and shouldn't be used. // printf( "Exiting with status %d.\n", status ) ; - + // To get rid of compiler warning + ( void ) status; for ( ; ; ) ; } From 8264b9386d45717e3cc57013dc922a9aebb5eaa3 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 2 Feb 2021 11:44:56 +0100 Subject: [PATCH 2/2] using tabs --- cores/arduino/syscalls_sam3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/arduino/syscalls_sam3.c b/cores/arduino/syscalls_sam3.c index 17fc5bfb..c57cc5a5 100644 --- a/cores/arduino/syscalls_sam3.c +++ b/cores/arduino/syscalls_sam3.c @@ -134,8 +134,8 @@ extern void _exit( int status ) { // printf is probably not set up by Arduino, and shouldn't be used. // printf( "Exiting with status %d.\n", status ) ; - // To get rid of compiler warning - ( void ) status; + // To get rid of compiler warning + ( void ) status; for ( ; ; ) ; }