mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
Use IsMinListEmpty() for MinList rather than IsListEmpty().
This removes the warnings about breaking the strict-aliasing rules.
This commit is contained in:
@@ -94,7 +94,7 @@ alloca_cleanup(const char * file,int line)
|
||||
NewList((struct List *)&alloca_memory_list);
|
||||
|
||||
/* Is this worth cleaning up? */
|
||||
if(NOT IsListEmpty((struct List *)&alloca_memory_list))
|
||||
if(NOT IsMinListEmpty(&alloca_memory_list))
|
||||
{
|
||||
struct MemoryContextNode * mcn_prev;
|
||||
struct MemoryContextNode * mcn;
|
||||
@@ -120,7 +120,7 @@ alloca_cleanup(const char * file,int line)
|
||||
|
||||
/* Drop the cleanup callback if there's nothing to be cleaned
|
||||
up any more. */
|
||||
if(IsListEmpty((struct List *)&alloca_memory_list))
|
||||
if(IsMinListEmpty(&alloca_memory_list))
|
||||
__alloca_cleanup = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user