Browse Source

Clean up gcc warnings

James Bowman 6 years ago
parent
commit
855d47761a
2 changed files with 3 additions and 2 deletions
  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();