Browse Source

HAL_DUE build fix (#15286)

Tanguy Pruvot 5 years ago
parent
commit
7c3d52cd6b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/HAL/HAL_DUE/usb/compiler.h

+ 2
- 2
Marlin/src/HAL/HAL_DUE/usb/compiler.h View File

@@ -216,7 +216,7 @@
216 216
 	}
217 217
 #  endif
218 218
 #else
219
-#  define Assert(expr) (() 0)
219
+#  define Assert(expr) ((void) 0)
220 220
 #endif
221 221
 
222 222
 /* Define WEAK attribute */
@@ -796,7 +796,7 @@ typedef struct
796 796
  *
797 797
  * \note It may be used as a long jump opcode in some special cases.
798 798
  */
799
-#define Long_call(addr)                   ((*(void (*)())(addr))())
799
+#define Long_call(addr)                   ((*(void (*)(void))(addr))())
800 800
 
801 801
 
802 802
 /*! \name MCU Endianism Handling

Loading…
Cancel
Save