mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
fix pedantic warnings
This commit is contained in:
13
src/main.c
13
src/main.c
@@ -1,8 +1,14 @@
|
||||
#include "main.h"
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL_error.h>
|
||||
#include <SDL_events.h>
|
||||
#include <SDL_keyboard.h>
|
||||
#include <SDL_render.h>
|
||||
#include <SDL_video.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "errors.h"
|
||||
@@ -19,7 +25,7 @@ bool playing = true;
|
||||
|
||||
SDL_Window* window = NULL;
|
||||
SDL_Renderer* renderer = NULL;
|
||||
GameData game_data = {};
|
||||
GameData game_data = {0};
|
||||
|
||||
|
||||
// handles game application initialisation
|
||||
@@ -68,6 +74,9 @@ void stop(void) {
|
||||
|
||||
// entry point of the application
|
||||
int main(int argc, char** argv) {
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
init();
|
||||
|
||||
while (playing)
|
||||
|
||||
Reference in New Issue
Block a user