summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-05-07 00:18:42 +0200
committerCedric Bail <cedric.bail@free.fr>2014-05-07 00:18:43 +0200
commite61004e30f1e5caab9e0679bb26849e409e5dd75 (patch)
tree2cd0f9aac07bcb46bef6dd1f449ced4dd4193d42 /src/bin/eolian_cxx
parent14d4700c3265fc7758793c879e3cf96b298642af (diff)
eolian_cxx: remove warnings from bin and lib.
Reviewers: cedric, smohanty, stefan_schmidt, stefan CC: felipealmeida, cedric Differential Revision: https://phab.enlightenment.org/D826 Signed-off-by: Cedric Bail <cedric.bail@free.fr>
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/convert.cc3
-rw-r--r--src/bin/eolian_cxx/eo_read.h2
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc11
3 files changed, 5 insertions, 11 deletions
diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index 6672daa54f..306ddc10c2 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -177,10 +177,7 @@ void
177convert_eolian_implements(efl::eolian::eo_class& cls, const char *classname) 177convert_eolian_implements(efl::eolian::eo_class& cls, const char *classname)
178{ 178{
179 const Eina_List *it; 179 const Eina_List *it;
180 void *curr;
181 std::string prefix(safe_str(eolian_class_eo_prefix_get(classname))); 180 std::string prefix(safe_str(eolian_class_eo_prefix_get(classname)));
182 const Eina_List *implements = eolian_class_implements_list_get(classname);
183 Eolian_Implement impl_desc;
184 void *impl_desc_; 181 void *impl_desc_;
185 EINA_LIST_FOREACH(eolian_class_implements_list_get(classname), it, impl_desc_) 182 EINA_LIST_FOREACH(eolian_class_implements_list_get(classname), it, impl_desc_)
186 { 183 {
diff --git a/src/bin/eolian_cxx/eo_read.h b/src/bin/eolian_cxx/eo_read.h
index 2ad332f410..57b5214252 100644
--- a/src/bin/eolian_cxx/eo_read.h
+++ b/src/bin/eolian_cxx/eo_read.h
@@ -37,7 +37,7 @@ _list_dir(const char *dir, const char *suffix, Eina_Bool recurse)
37} 37}
38 38
39inline Eina_List* 39inline Eina_List*
40eolian_read_from_fs(const char *path, Eina_Bool recurse) 40eolian_read_from_fs(const char *path)
41{ 41{
42 if (eina_str_has_suffix(path, EO_SUFFIX)) 42 if (eina_str_has_suffix(path, EO_SUFFIX))
43 { 43 {
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index 863caf3025..2ec77fbbaa 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -108,14 +108,11 @@ std::pair<std::string, std::string> get_filename_info(std::string path)
108 return {filename, namespace_}; 108 return {filename, namespace_};
109 } 109 }
110 } 110 }
111 else 111 return {path, std::string()};
112 {
113 return {path, std::string()};
114 }
115} 112}
116 113
117efl::eolian::eo_generator_options 114efl::eolian::eo_generator_options
118_resolve_includes(std::string const& classname, ::options_type const& opts) 115_resolve_includes(std::string const& classname)
119{ 116{
120 efl::eolian::eo_generator_options gen_opts; 117 efl::eolian::eo_generator_options gen_opts;
121 118
@@ -156,7 +153,7 @@ _generate(const std::string classname, ::options_type const& opts)
156 efl::eolian::eo_class cls = ::c_to_cxx(classname.c_str()); 153 efl::eolian::eo_class cls = ::c_to_cxx(classname.c_str());
157 cls.name_space = opts.name_space; 154 cls.name_space = opts.name_space;
158 efl::eolian::eo_class_validate(cls); 155 efl::eolian::eo_class_validate(cls);
159 efl::eolian::eo_generator_options gen_opts = _resolve_includes(classname, opts); 156 efl::eolian::eo_generator_options gen_opts = _resolve_includes(classname);
160 std::string outname = (opts.out_file == "") ? (cls.name + ".eo.hh") : opts.out_file; 157 std::string outname = (opts.out_file == "") ? (cls.name + ".eo.hh") : opts.out_file;
161 158
162 if (opts.out_dir != "") 159 if (opts.out_dir != "")
@@ -247,7 +244,7 @@ _load_classes(options_type const& opts)
247{ 244{
248 for (auto src : opts.in_srcs) 245 for (auto src : opts.in_srcs)
249 { 246 {
250 if (eolian_read_from_fs(src.c_str(), opts.recurse) == NULL) 247 if (eolian_read_from_fs(src.c_str()) == NULL)
251 { 248 {
252 EINA_CXX_DOM_LOG_WARN(::domain) 249 EINA_CXX_DOM_LOG_WARN(::domain)
253 << "Couldn't load eolian file: " << src; 250 << "Couldn't load eolian file: " << src;