From 0ed1a0cf84c08ce4fe6e754a71ec9e16ce7aa63a Mon Sep 17 00:00:00 2001 From: $4Y$ Date: Sun, 10 Jan 2021 03:18:17 -0500 Subject: [PATCH] warning suppression --- src/game/mario_cheats.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/game/mario_cheats.c b/src/game/mario_cheats.c index cf88e7d2..1c45ea7a 100644 --- a/src/game/mario_cheats.c +++ b/src/game/mario_cheats.c @@ -63,6 +63,11 @@ #include "pc/configfile.h" #include "pc/cheats.h" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#pragma GCC diagnostic ignored "-Wincompatible-pointer-types" +#pragma GCC diagnostic ignored "-Wimplicit-function-declaration" +#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" + #define SwiftSwim 42.0f /*SwiftSwim Cheat*/ @@ -1555,17 +1560,6 @@ void cheats_mario_inputs(struct MarioState *m) { break; } - /*This check should be added when creating a spawn cheat to prevent spamming*/ - // struct Object *obj = (struct Object *) gObjectLists[OBJ_LIST_LEVEL].next; - // struct Object *first = (struct Object *) &gObjectLists[OBJ_LIST_LEVEL]; - // while (obj != NULL && obj != first) { - // if (obj->header.gfx.sharedChild = gLoadedGraphNodes[MODEL_KOOPA_SHELL]) { - // obj_mark_for_deletion(obj); - // break; - // } - // obj = (struct Object *) obj->header.next; - //} - if ((m->action & ACT_GROUP_MASK) == ACT_GROUP_SUBMERGED) { spawn_object_relative(0, 0, 100, 100, gCurrentObject, MODEL_KOOPA_SHELL, bhvKoopaShellUnderwater);