Fix compilation warnings

This commit is contained in:
Agent X 2023-11-21 17:44:36 -05:00
parent ff29d848e2
commit cc9348c71c
3 changed files with 2 additions and 16 deletions

View file

@ -17,15 +17,12 @@ gNetworkPlayers = {}
--- @type Mod[]
--- Array of all mods loaded, starting from 0
--- - All mods are loaded in the same order for every player
--- - Index 0 is the first mod in the list (The top of the mod list)
--- - Index 0 is the first mod in the list (the top of the mod list)
gActiveMods = {}
--- @type Character[]
gCharacters = {}
--- @type PlayerPalette[]
gPalettePresets = {}
--- @type GlobalTextures
gTextures = {}

View file

@ -19,7 +19,7 @@ struct ConsoleQueuedMessage {
struct ConsoleQueuedMessage* sConsoleQueuedMessages = NULL;
static void djui_console_message_queue(char* message) {
static void djui_console_message_queue(const char* message) {
struct ConsoleQueuedMessage* queued = malloc(sizeof(struct ConsoleQueuedMessage));
queued->message = strdup(message);
queued->next = NULL;

View file

@ -603,17 +603,6 @@ void smlua_cobject_init_globals(void) {
lua_setglobal(L, "gCharacters");
}
{
lua_newtable(L);
int t = lua_gettop(gLuaState);
for (s32 i = 0; i < PALETTE_PRESET_MAX; i++) {
lua_pushinteger(L, i);
smlua_push_object(L, LOT_PLAYERPALETTE, &gPalettePresets[i]);
lua_settable(L, t);
}
lua_setglobal(L, "gPalettePresets");
}
#define EXPOSE_GLOBAL(lot, ptr) \
{ \
smlua_push_object(L, lot, &ptr); \