From 9f8744a50a8baaaa63d8597002f37f3b04b7d0d3 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Wed, 13 Mar 2013 13:19:54 +0000 Subject: [PATCH] eina/tests: Adding return to non void function. This fixes the test case for me. Also fixes two small wanring while being there. --- src/tests/eina/eina_test_simple_xml_parser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/eina/eina_test_simple_xml_parser.c b/src/tests/eina/eina_test_simple_xml_parser.c index 25a42c789c..5e550823f4 100644 --- a/src/tests/eina/eina_test_simple_xml_parser.c +++ b/src/tests/eina/eina_test_simple_xml_parser.c @@ -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)