address travis warnings

This commit is contained in:
Jamiras 2021-06-02 06:37:54 -06:00
parent 69f3dda90a
commit f8479c2b5a
2 changed files with 5 additions and 5 deletions

View File

@ -21,10 +21,10 @@
#include "cheevos_memory.h"
#include <../command.h>
#include <../verbosity.h>
#include <boolean.h>
#include <command.h>
#include <queues/task_queue.h>
#include <verbosity.h>
#ifdef HAVE_THREADS
#include <rthreads/rthreads.h>

View File

@ -194,9 +194,9 @@ static rcheevos_menuitem_t* rcheevos_menu_allocate(
{
if (rcheevos_locals->menuitems)
{
rcheevos_menuitem_t* new_menuitems;
rcheevos_locals->menuitem_capacity += 32;
rcheevos_menuitem_t* new_menuitems = (rcheevos_menuitem_t*)
realloc(rcheevos_locals->menuitems,
new_menuitems = (rcheevos_menuitem_t*)realloc(rcheevos_locals->menuitems,
rcheevos_locals->menuitem_capacity * sizeof(rcheevos_menuitem_t));
if (new_menuitems)
@ -231,7 +231,7 @@ static rcheevos_menuitem_t* rcheevos_menu_allocate(
menuitem = &rcheevos_locals->menuitems[rcheevos_locals->menuitem_count++];
menuitem->cheevo = cheevo;
menuitem->state_label_idx = 0;
menuitem->state_label_idx = MSG_UNKNOWN;
return menuitem;
}