Browse Source

Strengthen the build

rexim 5 years ago
parent
commit
8290571ca6
2 changed files with 2 additions and 4 deletions
  1. 1 1
      Makefile
  2. 1 3
      main.c

+ 1 - 1
Makefile

@@ -1,4 +1,4 @@
-CFLAGS=`pkg-config --cflags sdl2`
+CFLAGS=`pkg-config --cflags sdl2` -Wall -Wextra -std=c99 -pedantic
 LIBS=`pkg-config --libs sdl2` -lm
 
 sowon: main.c

+ 1 - 3
main.c

@@ -134,14 +134,12 @@ int main(int argc, char **argv)
 
     int quit = 0;
     size_t wiggle_index = 0;
-    size_t digit_index = 0;
     float wiggle_cooldown = WIGGLE_DURATION;
-    float digit_cooldown = 1.0f;
     int paused = 0;
     float scale = 1.0f;
     while (!quit) {
         // INPUT BEGIN //////////////////////////////
-        SDL_Event event = {};
+        SDL_Event event = {0};
         while (SDL_PollEvent(&event)) {
             switch (event.type) {
             case SDL_QUIT: {