mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
tests: Remove unused inline functions from slice tests
These were causing compiler warnings when compiling with clang. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
385ad59f41
commit
8d613ee7ff
@ -63,25 +63,6 @@ corruption (void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline gpointer
|
||||
memchunk_alloc (GMemChunk **memchunkp,
|
||||
guint size)
|
||||
{
|
||||
size = MAX (size, 1);
|
||||
if (G_UNLIKELY (!*memchunkp))
|
||||
*memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
|
||||
return old_mem_chunk_alloc (*memchunkp);
|
||||
}
|
||||
|
||||
static inline void
|
||||
memchunk_free (GMemChunk *memchunk,
|
||||
gpointer chunk)
|
||||
{
|
||||
old_mem_chunk_free (memchunk, chunk);
|
||||
if (clean_memchunks)
|
||||
old_mem_chunk_clean (memchunk);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
test_sliced_mem_thread (gpointer data)
|
||||
{
|
||||
|
@ -63,25 +63,6 @@ corruption (void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline gpointer
|
||||
memchunk_alloc (GMemChunk **memchunkp,
|
||||
guint size)
|
||||
{
|
||||
size = MAX (size, 1);
|
||||
if (G_UNLIKELY (!*memchunkp))
|
||||
*memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
|
||||
return old_mem_chunk_alloc (*memchunkp);
|
||||
}
|
||||
|
||||
static inline void
|
||||
memchunk_free (GMemChunk *memchunk,
|
||||
gpointer chunk)
|
||||
{
|
||||
old_mem_chunk_free (memchunk, chunk);
|
||||
if (clean_memchunks)
|
||||
old_mem_chunk_clean (memchunk);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
test_sliced_mem_thread (gpointer data)
|
||||
{
|
||||
|
@ -63,25 +63,6 @@ corruption (void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline gpointer
|
||||
memchunk_alloc (GMemChunk **memchunkp,
|
||||
guint size)
|
||||
{
|
||||
size = MAX (size, 1);
|
||||
if (G_UNLIKELY (!*memchunkp))
|
||||
*memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
|
||||
return old_mem_chunk_alloc (*memchunkp);
|
||||
}
|
||||
|
||||
static inline void
|
||||
memchunk_free (GMemChunk *memchunk,
|
||||
gpointer chunk)
|
||||
{
|
||||
old_mem_chunk_free (memchunk, chunk);
|
||||
if (clean_memchunks)
|
||||
old_mem_chunk_clean (memchunk);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
test_sliced_mem_thread (gpointer data)
|
||||
{
|
||||
|
@ -63,25 +63,6 @@ corruption (void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline gpointer
|
||||
memchunk_alloc (GMemChunk **memchunkp,
|
||||
guint size)
|
||||
{
|
||||
size = MAX (size, 1);
|
||||
if (G_UNLIKELY (!*memchunkp))
|
||||
*memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
|
||||
return old_mem_chunk_alloc (*memchunkp);
|
||||
}
|
||||
|
||||
static inline void
|
||||
memchunk_free (GMemChunk *memchunk,
|
||||
gpointer chunk)
|
||||
{
|
||||
old_mem_chunk_free (memchunk, chunk);
|
||||
if (clean_memchunks)
|
||||
old_mem_chunk_clean (memchunk);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
test_sliced_mem_thread (gpointer data)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user