From 405ed84cae9b83eba540d7ee319f5ff025a314a1 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Sat, 15 Aug 2026 20:41:50 +0200 Subject: [PATCH] Removed cflag and removed useless macro parameters. --- src/Makefile | 2 +- src/headers/ecs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 99ce450..4641ec8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -17,7 +17,7 @@ CORE_CFLAGS = --std=c17 --pedantic -O3 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTP else CORE_CFLAGS = --std=c17 --pedantic -O1 -g -DDEBUG=2 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ -Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \ - -Wformat=2 -Wswitch-default -Wswitch-enum -Wcast-align \ + -Wformat=2 -Wswitch-default -Wswitch -Wcast-align \ -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \ -Wstrict-prototypes -Winline -Wundef -Wnested-externs \ -Wcast-qual -Wshadow -Wunreachable-code -Wlogical-op \ diff --git a/src/headers/ecs.h b/src/headers/ecs.h index c50d9d1..c9f8ba2 100644 --- a/src/headers/ecs.h +++ b/src/headers/ecs.h @@ -6,7 +6,7 @@ #include "linked_list.h" typedef enum component_type_t { -#define COMPONENT(NAME, PREFIX, DRAW) NAME, +#define COMPONENT(NAME, ...) NAME, #include "components.def" } component_type_t;