From 7c3d52cd6b308ff8799995b7e2d65f44d4eb4f49 Mon Sep 17 00:00:00 2001
From: Tanguy Pruvot <tpruvot@users.noreply.github.com>
Date: Tue, 17 Sep 2019 11:51:28 +0200
Subject: [PATCH] HAL_DUE build fix (#15286)

---
 Marlin/src/HAL/HAL_DUE/usb/compiler.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Marlin/src/HAL/HAL_DUE/usb/compiler.h b/Marlin/src/HAL/HAL_DUE/usb/compiler.h
index 1b7be6a67e..7719c129c3 100644
--- a/Marlin/src/HAL/HAL_DUE/usb/compiler.h
+++ b/Marlin/src/HAL/HAL_DUE/usb/compiler.h
@@ -216,7 +216,7 @@
 	}
 #  endif
 #else
-#  define Assert(expr) (() 0)
+#  define Assert(expr) ((void) 0)
 #endif
 
 /* Define WEAK attribute */
@@ -796,7 +796,7 @@ typedef struct
  *
  * \note It may be used as a long jump opcode in some special cases.
  */
-#define Long_call(addr)                   ((*(void (*)())(addr))())
+#define Long_call(addr)                   ((*(void (*)(void))(addr))())
 
 
 /*! \name MCU Endianism Handling
-- 
GitLab