Explorar el Código

Clean up gcc warnings

James Bowman hace 6 años
padre
commit
855d47761a
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2 1
      examples/kenney.ino
  2. 1 1
      examples/video2.ino

+ 2 - 1
examples/kenney.ino

@@ -4,6 +4,7 @@
 
 #include "kenney_assets.h"
 
+#undef PLAYER1_SIZE
 #define PLAYER1_SIZE  (PLAYER1_HEIGHT + 8)
 #define HEART_SZ    (HEART_HEIGHT + 14)
 
@@ -50,7 +51,7 @@ class Trail {
     }
 };
 
-struct {
+struct state_t {
   xy p[3];
   Trail trail[3];
   xy hearts[20];

+ 1 - 1
examples/video2.ino

@@ -4,7 +4,7 @@
 
 Dirsearch ds;
 
-char *pickfile(char *ext)
+char *pickfile(const char *ext)
 {
   GD.Clear();
   ds.begin();