remove release compile errors

This commit is contained in:
Eric House 2024-04-13 17:09:05 -07:00
parent a89b55792a
commit 3a4748b7f7
4 changed files with 25 additions and 13 deletions

View file

@ -742,7 +742,7 @@ findIsoProc( const DLHead* elem, void* closure )
}
static PhoniesDataCodes*
findForIso( XW_DUtilCtxt* dutil, DevCtxt* dc, const XP_UCHAR* isoCode )
findForIso( XW_DUtilCtxt* XP_UNUSED_DBG(dutil), DevCtxt* dc, const XP_UCHAR* isoCode )
{
FindIsoState fis = {
.isoCode = isoCode,
@ -894,24 +894,24 @@ static void
freeOnePhony( DLHead* elem, void* closure )
{
FreeState* fs = (FreeState*)closure;
XW_DUtilCtxt* dutil = fs->dutil;
++fs->count;
const PhoniesDataStrs* pds = (PhoniesDataStrs*)elem;
XP_FREE( dutil->mpool, pds->phony );
XP_FREE( dutil->mpool, elem );
XP_FREE( fs->dutil->mpool, pds->phony );
XP_FREE( fs->dutil->mpool, elem );
}
static void
freeOneCode( DLHead* elem, void* closure)
{
FreeState* fs = (FreeState*)closure;
XW_DUtilCtxt* dutil = fs->dutil;
const PhoniesDataCodes* pdc = (PhoniesDataCodes*)elem;
dll_removeAll( &pdc->head->links, freeOnePhony, closure );
XP_FREE( dutil->mpool, pdc->isoCode );
XP_FREE( dutil->mpool, elem );
#ifdef MEM_DEBUG
FreeState* fs = (FreeState*)closure;
#endif
XP_FREE( fs->dutil->mpool, pdc->isoCode );
XP_FREE( fs->dutil->mpool, elem );
}
static DevCtxt*

View file

@ -107,7 +107,10 @@ inviteFromArgs( CmdWrapper* wr, cJSON* args )
if ( !!tmp ) {
XP_LOGFF( "parsing mqtt: %s", tmp->valuestring );
addr_addType( &destAddrs[ii], COMMS_CONN_MQTT );
XP_Bool success = strToMQTTCDevID( tmp->valuestring, &destAddrs[ii].u.mqtt.devID );
#ifdef DEBUG
XP_Bool success =
#endif
strToMQTTCDevID( tmp->valuestring, &destAddrs[ii].u.mqtt.devID );
XP_ASSERT( success );
}
tmp = cJSON_GetObjectItem( addr, "sms" );
@ -329,7 +332,10 @@ makeGameFromArgs( CmdWrapper* wr, cJSON* args )
/* figureDims( aGlobals, &dims ); */
XP_U32 newGameID;
bool success = (*wr->procs.newGame)( wr->closure, &gi, &newGameID );
#ifdef DEBUG
bool success =
#endif
(*wr->procs.newGame)( wr->closure, &gi, &newGameID );
XP_ASSERT( success );
gi_disposePlayerInfo( MPPARM(params->mpool) &gi );
@ -434,7 +440,10 @@ on_incoming_signal( GSocketService* XP_UNUSED(service),
GOutputStream* ostream = g_io_stream_get_output_stream( G_IO_STREAM(connection) );
gsize nwritten;
gboolean wroteall = g_output_stream_write_all( ostream, replyStr, replyStrLen,
#ifdef DEBUG
gboolean wroteall =
#endif
g_output_stream_write_all( ostream, replyStr, replyStrLen,
&nwritten, NULL, NULL );
XP_ASSERT( wroteall && nwritten == replyStrLen );
GError* error = NULL;

View file

@ -332,7 +332,10 @@ draw_string_at( GtkDrawCtx* dctx, PangoLayout* layout,
GError* error = NULL;
int len = snprintf( buf, sizeof(buf), fmt, str );
gboolean success = pango_parse_markup( buf, len, 0,
#ifdef DEBUG
gboolean success =
#endif
pango_parse_markup( buf, len, 0,
&attr_list,
&text, NULL, &error );
if ( !!error ) {

View file

@ -983,7 +983,7 @@ newGameWrapper( void* closure, CurGameInfo* gi, XP_U32* newGameIDP )
GtkGameGlobals* globals = calloc( 1, sizeof(*globals) );
initBoardGlobalsGtk( globals, params, NULL );
gi_copy( params->mpool, globals->cGlobals.gi, gi );
gi_copy( MPPARM(params->mpool) globals->cGlobals.gi, gi );
GtkWidget* gameWindow = globals->window;
globals->cGlobals.rowid = -1;