diff --git a/t/buf-simple.c b/t/buf-simple.c index ff22aa10..72d9fd40 100644 --- a/t/buf-simple.c +++ b/t/buf-simple.c @@ -12,8 +12,6 @@ static void test_expand_title(void **state) { - (void)state; - struct buf s = BUF_INIT; char TEMPLATE[] = "foo ~/bar"; @@ -58,8 +56,6 @@ test_expand_title(void **state) static void test_buf_add_fmt(void **state) { - (void)state; - struct buf s = BUF_INIT; buf_add(&s, "foo"); @@ -72,8 +68,6 @@ test_buf_add_fmt(void **state) static void test_buf_add_char(void **state) { - (void)state; - const char long_string[] = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"; size_t len = strlen(long_string); diff --git a/t/str.c b/t/str.c index 79debb1c..159f95d3 100644 --- a/t/str.c +++ b/t/str.c @@ -11,8 +11,6 @@ static void test_str_starts_with(void **state) { - (void)state; - assert_true(str_starts_with(" foo", 'f', " \t\r\n")); assert_true(str_starts_with("f", 'f', " \t\r\n")); assert_false(str_starts_with(" foo", '<', " ")); diff --git a/t/xml.c b/t/xml.c index a7be6b87..f4c70744 100644 --- a/t/xml.c +++ b/t/xml.c @@ -100,8 +100,6 @@ struct test_case { static void test_lab_xml_expand_dotted_attributes(void **state) { - (void)state; - for (size_t i = 0; i < ARRAY_SIZE(test_cases); i++) { xmlDoc *doc = xmlReadDoc((xmlChar *)test_cases[i].before, NULL, NULL, 0);