Przeglądaj źródła

🩹 Suppress ZERO() warning (#24178)

Oliver Jean Eifler 2 lat temu
rodzic
commit
79789571bc
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/src/core/macros.h

+ 1
- 1
Marlin/src/core/macros.h Wyświetl plik

@@ -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))); \

Ładowanie…
Anuluj
Zapisz