fix pedantic warnings

This commit is contained in:
2025-01-24 19:35:13 +01:00
parent ec77c6958f
commit 3190bb4732
12 changed files with 112 additions and 77 deletions

View File

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