]> git.mdlowis.com Git - proto/labwc.git/commitdiff
tests: remove placeholders for arguments
authortokyo4j <hrak1529@gmail.com>
Wed, 15 Oct 2025 21:27:20 +0000 (06:27 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 19 Oct 2025 19:12:38 +0000 (04:12 +0900)
t/buf-simple.c
t/str.c
t/xml.c

index ff22aa1036dc04c68cf62e94aa3a297abc4f225d..72d9fd401074fed26aa5d54e73b5c29460010114 100644 (file)
@@ -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 79debb1c4548c624b1e15947fcbe87b10fa45a7e..159f95d3be1368d07ba1c7ee81e754e5015131d3 100644 (file)
--- 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 a7be6b87e07b06c99380f6dfb0c4ade9bb36608f..f4c70744c7cbd45e034b148f06b459738c400aed 100644 (file)
--- 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);