eina/tests: Adding return to non void function.
authorStefan Schmidt <s.schmidt@samsung.com>
Wed, 13 Mar 2013 13:19:54 +0000 (13:19 +0000)
committerStefan Schmidt <s.schmidt@samsung.com>
Wed, 13 Mar 2013 13:19:54 +0000 (13:19 +0000)
This fixes the test case for me. Also fixes two small wanring while being there.

src/tests/eina/eina_test_simple_xml_parser.c

index 25a42c7..5e55082 100644 (file)
@@ -138,8 +138,8 @@ static Eina_Bool
 eina_simple_xml_parser_parse_with_custom_callback_tag_cb(void *data,
                                                          Eina_Simple_XML_Type type,
                                                          const char *content,
-                                                         unsigned offset,
-                                                         unsigned length)
+                                                         unsigned offset EINA_UNUSED,
+                                                         unsigned length EINA_UNUSED)
 {
     int* parse_current_state = (int*) data;
 
@@ -217,6 +217,7 @@ eina_simple_xml_parser_parse_with_custom_callback_tag_cb(void *data,
             *parse_current_state = simple_xml_parser_current_state_end;
           }
       }
+    return EINA_TRUE;
 }
 
 START_TEST(eina_simple_xml_parser_parse_with_custom_callback)