Skip to content

Commit 195ee54

Browse files
oliver-eiflerJeremy Fairbanks
authored and
Jeremy Fairbanks
committed
🩹 Suppress ZERO() warning (MarlinFirmware#24178)
1 parent 379d8eb commit 195ee54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/core/macros.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
#define NUMERIC_SIGNED(a) (NUMERIC(a) || (a) == '-' || (a) == '+')
279279
#define DECIMAL_SIGNED(a) (DECIMAL(a) || (a) == '-' || (a) == '+')
280280
#define COUNT(a) (sizeof(a)/sizeof(*a))
281-
#define ZERO(a) memset(a,0,sizeof(a))
281+
#define ZERO(a) memset((void*)a,0,sizeof(a))
282282
#define COPY(a,b) do{ \
283283
static_assert(sizeof(a[0]) == sizeof(b[0]), "COPY: '" STRINGIFY(a) "' and '" STRINGIFY(b) "' types (sizes) don't match!"); \
284284
memcpy(&a[0],&b[0],_MIN(sizeof(a),sizeof(b))); \

0 commit comments

Comments
 (0)