Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests
Modified Files:
ewl_histogram.c ewl_io_manager.c ewl_text_editor.c ewl_tree2.c
Log Message:
- fix warnings
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_histogram.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_histogram.c 13 Sep 2006 06:52:21 -0000 1.2
+++ ewl_histogram.c 30 Sep 2006 22:07:45 -0000 1.3
@@ -68,7 +68,8 @@
}
static void
-ewl_histogram_test_cb_configure(Ewl_Widget *w, void *event, void *data)
+ewl_histogram_test_cb_configure(Ewl_Widget *w, void *event __UNUSED__,
+ void *data __UNUSED__)
{
Ewl_Widget *child;
Ewl_Container *c = EWL_CONTAINER(w);
@@ -79,3 +80,4 @@
CURRENT_W(c), CURRENT_H(c));
}
}
+
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_io_manager.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_io_manager.c 29 Sep 2006 19:45:30 -0000 1.6
+++ ewl_io_manager.c 30 Sep 2006 22:07:45 -0000 1.7
@@ -4,21 +4,11 @@
#include "ewl_test_private.h"
static int create_test(Ewl_Container *box);
-static int ext_to_icon_name_test(char *buf, int len);
-static int mime_to_icon_name_test(char *buf, int len);
-static int uri_mime_type_get_test(char *buf, int len);
static void cb_clicked(Ewl_Widget *w, void *ev, void *data);
static void cb_open(Ewl_Widget *w, void *ev, void *data);
static void cb_fd_delete(Ewl_Widget *w, void *ev, void *data);
-static Ewl_Unit_Test io_manager_unit_tests[] = {
- {"extension to icon name mapping", ext_to_icon_name_test},
- {"mime type to icon name mapping", mime_to_icon_name_test},
- {"uri mime type get", uri_mime_type_get_test},
- {NULL, NULL}
- };
-
void
test_info(Ewl_Test *test)
{
@@ -27,7 +17,6 @@
test->filename = __FILE__;
test->func = create_test;
test->type = EWL_TEST_TYPE_SIMPLE;
- test->unit_tests = io_manager_unit_tests;
}
static int
@@ -51,7 +40,8 @@
}
static void
-cb_clicked(Ewl_Widget *w, void *ev, void *data)
+cb_clicked(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
+ void *data __UNUSED__)
{
Ewl_Widget *fd;
@@ -65,13 +55,13 @@
}
static void
-cb_fd_delete(Ewl_Widget *w, void *ev, void *data)
+cb_fd_delete(Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__)
{
ewl_widget_destroy(w);
}
static void
-cb_open(Ewl_Widget *w, void *ev, void *data)
+cb_open(Ewl_Widget *w, void *ev, void *data __UNUSED__)
{
Ewl_Dialog_Event *e;
Ewl_Filedialog *fd;
@@ -101,24 +91,6 @@
}
ewl_container_child_append(EWL_CONTAINER(scroll), t);
ewl_widget_show(t);
-}
-
-static int
-ext_to_icon_name_test(char *buf, int len)
-{
- return 1;
-}
-
-static int
-mime_to_icon_name_test(char *buf, int len)
-{
- return 1;
-}
-
-static int
-uri_mime_type_get_test(char *buf, int len)
-{
- return 1;
}
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_text_editor.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_text_editor.c 24 Sep 2006 20:26:50 -0000 1.17
+++ ewl_text_editor.c 30 Sep 2006 22:07:45 -0000 1.18
@@ -92,7 +92,7 @@
{EWL_ICON_FORMAT_TEXT_ITALIC, "Italic", ete_cb_italic},
{EWL_ICON_FORMAT_TEXT_UNDERLINE, "Underline",
ete_cb_underline},
{EWL_ICON_FORMAT_TEXT_STRIKETHROUGH, "Strikethrough",
ete_cb_strikethrough},
- {NULL, NULL}
+ {NULL, NULL, NULL}
};
styles = ecore_list_new();
@@ -281,7 +281,8 @@
}
static void
-ete_cb_strikethrough(Ewl_Widget *w, void *ev, void *data)
+ete_cb_strikethrough(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
+ void *data __UNUSED__)
{
Ewl_Widget *entry;
@@ -290,7 +291,8 @@
}
static void
-ete_cb_underline(Ewl_Widget *w, void *ev, void *data)
+ete_cb_underline(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
+ void *data __UNUSED__)
{
Ewl_Widget *entry;
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_tree2.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_tree2.c 25 Sep 2006 18:03:42 -0000 1.15
+++ ewl_tree2.c 30 Sep 2006 22:07:45 -0000 1.16
@@ -334,7 +334,8 @@
}
static void
-ewl_tree2_cb_set_rows_clicked(Ewl_Widget *w, void *ev, void *data)
+ewl_tree2_cb_set_rows_clicked(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
+ void *data __UNUSED__)
{
Ewl_Widget *spinner, *tree;
Tree2_Test_Data *d;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs