From f0d98216ca3de4bda5fa159d015f98477d3a4513 Mon Sep 17 00:00:00 2001 From: 0scar Date: Fri, 28 Jul 2023 20:44:08 +0200 Subject: Disable pedantics when compilining hostreload --- src/state.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 1d59ad7..0710127 100644 --- a/src/state.c +++ b/src/state.c @@ -132,8 +132,8 @@ StateType State_update(StateType type, memory *mem) { return next_state; } -bool State_reload(StateType type) { #ifdef DAW_BUILD_HOTRELOAD +bool State_reload(StateType type) { switch (type) { #define State(name) \ case (STATE_##name): { \ @@ -165,6 +165,8 @@ bool State_reload(StateType type) { default: exit(EXIT_FAILURE); } -#endif return true; } +#else +#define State_reload(_) true +#endif -- cgit v1.3