vitorsousa pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f331d1c6cc1e6f8a7ec7dde37bfaaa11598a53e6

commit f331d1c6cc1e6f8a7ec7dde37bfaaa11598a53e6
Author: Vitor Sousa <vitorso...@expertisesolutions.com.br>
Date:   Wed Jul 17 19:32:32 2019 -0300

    cxx: remove a compilation warning for g++ 7.x
    
    Remove a compilation warning about an unsupported warning category for g++ 
7.x.
    
    A `#pragma` directive was used to suppress a `-Wcast-function-type` warning
    in g++.
    Versions older than 8.x do not have this warning category and raises a 
warning
    because of this directive.
    
    Now this directive is only enabled for g++ version 8.x or newer.
---
 src/bindings/cxx/eldbus_cxx/eldbus_service.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bindings/cxx/eldbus_cxx/eldbus_service.hh 
b/src/bindings/cxx/eldbus_cxx/eldbus_service.hh
index 31c3386bd3..7d1e00552c 100644
--- a/src/bindings/cxx/eldbus_cxx/eldbus_service.hh
+++ b/src/bindings/cxx/eldbus_cxx/eldbus_service.hh
@@ -298,7 +298,7 @@ void _create_methods_specification_impl(Method const& 
method, Eldbus_Method2& el
   // C++ always raises a warning for such conversions, so this warning
   // can be disabled just here.
 #pragma GCC diagnostic push
-#ifndef __clang__
+#if !defined(__clang__) && __GNUC__ >= 8
 #pragma GCC diagnostic ignored "-Wcast-function-type"
 #endif
   Eldbus_Method_Cb method_cb =

-- 


Reply via email to