Remove useless void checks
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "util/math.h"
|
||||
|
||||
static void test_mathNextPowTwo(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Positive integers
|
||||
assert_int_equal(mathNextPowTwo(0), 1);
|
||||
@@ -44,7 +44,6 @@ static void test_mathNextPowTwo(void **state) {
|
||||
}
|
||||
|
||||
static void test_mathMax(void **state) {
|
||||
(void)state;
|
||||
// Test positive integers
|
||||
assert_int_equal(mathMax(1, 2), 2);
|
||||
assert_int_equal(mathMax(2, 1), 2);
|
||||
@@ -94,7 +93,7 @@ static void test_mathMax(void **state) {
|
||||
}
|
||||
|
||||
static void test_mathMin(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Positive integers
|
||||
assert_int_equal(mathMin(1, 2), 1);
|
||||
@@ -145,7 +144,7 @@ static void test_mathMin(void **state) {
|
||||
}
|
||||
|
||||
static void test_mathClamp(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Positive Integer bounds.
|
||||
assert_int_equal(mathClamp(5, 1, 10), 5); // Within bounds
|
||||
@@ -203,7 +202,7 @@ static void test_mathClamp(void **state) {
|
||||
}
|
||||
|
||||
static void test_mathAbs(void **state) {
|
||||
(void)state;
|
||||
|
||||
|
||||
// Positive integers
|
||||
assert_int_equal(mathAbs(5), 5);
|
||||
|
||||
Reference in New Issue
Block a user