Remove useless void checks
This commit is contained in:
+11
-11
@@ -9,7 +9,7 @@
|
||||
#include "util/memory.h"
|
||||
|
||||
static void test_memoryAllocate(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Memory should allocate
|
||||
void *ptr = memoryAllocate(128);
|
||||
@@ -39,7 +39,7 @@ static void test_memoryAllocate(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryFree(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Create some memory
|
||||
void *ptr = memoryAllocate(64);
|
||||
@@ -72,7 +72,7 @@ static void test_memoryFree(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryCopy(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Create some memory
|
||||
size_t size = 32;
|
||||
@@ -112,7 +112,7 @@ static void test_memoryCopy(void **state) {
|
||||
}
|
||||
|
||||
static void test_memorySet(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Allocate memory
|
||||
size_t size = 16;
|
||||
@@ -146,7 +146,7 @@ static void test_memorySet(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryZero(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Create some memory
|
||||
size_t size = 20;
|
||||
@@ -174,7 +174,7 @@ static void test_memoryZero(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryCopyRangeSafe(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Create some memory
|
||||
size_t size = 10;
|
||||
@@ -223,7 +223,7 @@ static void test_memoryCopyRangeSafe(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryMove(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Create some memory
|
||||
size_t size = 15;
|
||||
@@ -276,7 +276,7 @@ static void test_memoryMove(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryCompare(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Create two memory blocks
|
||||
size_t size = 8;
|
||||
@@ -327,7 +327,7 @@ static void test_memoryCompare(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryReallocate(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
size_t initialSize = 16;
|
||||
void *ptr = memoryAllocate(initialSize);
|
||||
@@ -360,7 +360,7 @@ static void test_memoryReallocate(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryResize(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
size_t initialSize = 32;
|
||||
void *ptr = memoryAllocate(initialSize);
|
||||
@@ -424,7 +424,7 @@ static void test_memoryResize(void **state) {
|
||||
}
|
||||
|
||||
static void test_memoryCopyInterleaved(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Basic: copy 4 uint32_t values from contiguous source into every-other dest
|
||||
// slot (stride = 2*sizeof(uint32_t)).
|
||||
|
||||
Reference in New Issue
Block a user