eo-cxx: Replace for ENOMEM to avoid warnings
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Wed, 14 Sep 2016 03:55:51 +0000 (00:55 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Wed, 14 Sep 2016 03:55:51 +0000 (00:55 -0300)
src/bindings/cxx/ecore_cxx/Ecore_Manual.hh
src/bindings/cxx/eo_cxx/eo_promise_meta.hh
src/tests/eo_cxx/eo_cxx_test_promise.cc

index 4bc9062..19ec978 100644 (file)
@@ -28,7 +28,7 @@ void _ecore_main_loop_thread_safe_call_async_callback(void* data)
     }
   catch(std::bad_alloc const& e)
     {
-      eina_error_set( ::EINA_ERROR_OUT_OF_MEMORY);
+      eina_error_set(ENOMEM);
     }
   catch(std::system_error const& e)
     {
index 6259428..18b37d7 100644 (file)
@@ -159,7 +159,7 @@ struct future_copy_traits<eina::variant<Args...>>
      else
        copy_impl(storage, value, index, std::integral_constant<std::size_t, I+1>{}, max);
    }
-   static void copy(eina::variant<Args...>* storage, Efl_Future_Event_Success const* other_info)
+   static void copy(eina::variant<Args...>*, Efl_Future_Event_Success const*)
    {
      std::abort();
    }
@@ -246,7 +246,7 @@ static void future_invoke_impl_read_accessor
 }
   
 template <typename F, typename...Args, std::size_t...I, bool IsRace>
-void future_invoke_impl(F f, Efl_Event const* event, std::tuple<Args...>* arguments_dummy, std::integral_constant<bool, IsRace> race, eina::index_sequence<I...>)
+void future_invoke_impl(F f, Efl_Event const* event, std::tuple<Args...>* arguments_dummy, std::integral_constant<bool, IsRace>, eina::index_sequence<I...>)
 {
    Efl_Future_Event_Success* info = static_cast<Efl_Future_Event_Success*>(event->info);
    try
index 883229d..01b45c7 100644 (file)
@@ -129,7 +129,7 @@ START_TEST(eo_cxx_future_get_error)
                             efl::ecore::main_loop_thread_safe_call_async
                               ([&]
                                {
-                                  efl_promise_failed_set(p, EINA_ERROR_OUT_OF_MEMORY);
+                                  efl_promise_failed_set(p, ENOMEM);
                                });
 
                             try {