summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-01-20 23:34:04 +0100
committerdavemds <dave@gurumeditation.it>2014-01-20 23:34:04 +0100
commit90199b9fa7e724ae0adf0a793b09d58e71df57f3 (patch)
treec41e36f84a4fdb92cfb5c04206a4851c561f3e4f
parente0365fe4cdeb756f37ebcee396c2eca2a48bcb9c (diff)
Add -Wall to compiler flags and remove all remaining warnings
-rw-r--r--src/Makefile.am9
-rw-r--r--src/e_mod_main.c2
-rw-r--r--src/e_mod_penguins.c4
3 files changed, 8 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cef601b..62c5e1e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,9 +1,10 @@
1MAINTAINERCLEANFILES = Makefile.in 1MAINTAINERCLEANFILES = Makefile.in
2 2
3INCLUDES = -I. \ 3AM_CPPFLAGS = -Wall \
4 -I$(top_srcdir) \ 4 -I. \
5 -I$(includedir) \ 5 -I$(top_srcdir) \
6 @E_CFLAGS@ 6 -I$(includedir) \
7 @E_CFLAGS@
7 8
8pkgdir = $(datadir)/$(MODULE_ARCH) 9pkgdir = $(datadir)/$(MODULE_ARCH)
9pkg_LTLIBRARIES = module.la 10pkg_LTLIBRARIES = module.la
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index 1937338..dab7e6e 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -42,7 +42,7 @@ e_modapi_shutdown(E_Module *m)
42 e_configure_registry_item_del("appearance/penguins"); 42 e_configure_registry_item_del("appearance/penguins");
43 e_configure_registry_category_del("appearance"); 43 e_configure_registry_category_del("appearance");
44 44
45 if (pop = m->data) 45 if ((pop = m->data))
46 { 46 {
47 E_FREE_FUNC(pop->config_dialog, e_object_del); 47 E_FREE_FUNC(pop->config_dialog, e_object_del);
48 penguins_shutdown(pop); 48 penguins_shutdown(pop);
diff --git a/src/e_mod_penguins.c b/src/e_mod_penguins.c
index aebc9f2..23cc246 100644
--- a/src/e_mod_penguins.c
+++ b/src/e_mod_penguins.c
@@ -60,7 +60,6 @@ Penguins_Population *
60penguins_init(E_Module *m) 60penguins_init(E_Module *m)
61{ 61{
62 Penguins_Population *pop; 62 Penguins_Population *pop;
63 Eina_List *managers, *l, *l2;
64 char buf[PATH_MAX]; 63 char buf[PATH_MAX];
65 64
66 pop = E_NEW(Penguins_Population, 1); 65 pop = E_NEW(Penguins_Population, 1);
@@ -106,10 +105,11 @@ penguins_init(E_Module *m)
106 if (eina_str_has_suffix(filename, ".edj")) 105 if (eina_str_has_suffix(filename, ".edj"))
107 { 106 {
108 snprintf(buf, sizeof(buf), "%s/themes/%s", e_module_dir_get(m), filename); 107 snprintf(buf, sizeof(buf), "%s/themes/%s", e_module_dir_get(m), filename);
109 if (name = edje_file_data_get(buf, "PopulationName")) 108 if ((name = edje_file_data_get(buf, "PopulationName")))
110 { 109 {
111 printf("PENGUINS: Theme found: %s (%s)\n", filename, name); 110 printf("PENGUINS: Theme found: %s (%s)\n", filename, name);
112 pop->themes = eina_list_append(pop->themes, strdup(buf)); 111 pop->themes = eina_list_append(pop->themes, strdup(buf));
112 free(name);
113 } 113 }
114 } 114 }
115 free(filename); 115 free(filename);