Browse Source

🩹 Suppress ZERO() warning (#24178)

Oliver Jean Eifler 2 years ago
parent
commit
79789571bc
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/core/macros.h

+ 1
- 1
Marlin/src/core/macros.h View File

@@ -290,7 +290,7 @@
290 290
 #define NUMERIC_SIGNED(a)   (NUMERIC(a) || (a) == '-' || (a) == '+')
291 291
 #define DECIMAL_SIGNED(a)   (DECIMAL(a) || (a) == '-' || (a) == '+')
292 292
 #define COUNT(a)            (sizeof(a)/sizeof(*a))
293
-#define ZERO(a)             memset(a,0,sizeof(a))
293
+#define ZERO(a)             memset((void*)a,0,sizeof(a))
294 294
 #define COPY(a,b) do{ \
295 295
     static_assert(sizeof(a[0]) == sizeof(b[0]), "COPY: '" STRINGIFY(a) "' and '" STRINGIFY(b) "' types (sizes) don't match!"); \
296 296
     memcpy(&a[0],&b[0],_MIN(sizeof(a),sizeof(b))); \

Loading…
Cancel
Save