cedric pushed a commit to branch master.

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

commit 59de60e60c1bd073a1bfc8942fb0a9847dc5fa6d
Author: Srivardhan Hebbar <[email protected]>
Date:   Tue Feb 3 14:30:21 2015 +0100

    ecore_con: remove code in examples that triggered warnings.
    
    Summary:
    When the examples were compiled they used to through the below warning
    $ gcc -o ecore_con_client_simple_example ecore_con_client_simple_example.c 
`pkg-config --libs --cflags ecore ecore-con eina`
    ecore_con_client_simple_example.c:11:0: warning: "EINA_UNUSED" redefined
     # define EINA_UNUSED
     ^
    In file included from /usr/include/eina-1/Eina.h:215:0,
                     from /usr/include/ecore-1/Ecore.h:304,
                     from ecore_con_client_simple_example.c:5:
    /usr/include/eina-1/eina/eina_types.h:112:0: note: this is the location of 
the previous definition
     #  define EINA_UNUSED __attribute__ ((__unused__))
     ^
    So removed these defines as they are no longer required now.
    
    Reviewers: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1919
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/examples/ecore/ecore_con_client_simple_example.c | 6 ------
 src/examples/ecore/ecore_con_server_http_example.c   | 6 ------
 src/examples/ecore/ecore_con_server_simple_example.c | 6 ------
 src/examples/ecore/ecore_con_url_cookies_example.c   | 6 ------
 4 files changed, 24 deletions(-)

diff --git a/src/examples/ecore/ecore_con_client_simple_example.c 
b/src/examples/ecore/ecore_con_client_simple_example.c
index e122b26..ab669db 100644
--- a/src/examples/ecore/ecore_con_client_simple_example.c
+++ b/src/examples/ecore/ecore_con_client_simple_example.c
@@ -5,12 +5,6 @@
 #include <Ecore.h>
 #include <Ecore_Con.h>
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#else
-# define EINA_UNUSED
-#endif
-
 struct _Server
 {
    int sdata;
diff --git a/src/examples/ecore/ecore_con_server_http_example.c 
b/src/examples/ecore/ecore_con_server_http_example.c
index c6e9c23..1269b73 100644
--- a/src/examples/ecore/ecore_con_server_http_example.c
+++ b/src/examples/ecore/ecore_con_server_http_example.c
@@ -6,12 +6,6 @@
 #include <Ecore.h>
 #include <Ecore_Con.h>
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#else
-# define EINA_UNUSED
-#endif
-
 static const char response_template[] =
   "HTTP/1.0 200 OK\r\n"
   "Server: Ecore_Con custom server\r\n"
diff --git a/src/examples/ecore/ecore_con_server_simple_example.c 
b/src/examples/ecore/ecore_con_server_simple_example.c
index 8cae748..3c46ea2 100644
--- a/src/examples/ecore/ecore_con_server_simple_example.c
+++ b/src/examples/ecore/ecore_con_server_simple_example.c
@@ -5,12 +5,6 @@
 #include <Ecore.h>
 #include <Ecore_Con.h>
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#else
-# define EINA_UNUSED
-#endif
-
 struct _Client
 {
    int sdata;
diff --git a/src/examples/ecore/ecore_con_url_cookies_example.c 
b/src/examples/ecore/ecore_con_url_cookies_example.c
index dce9989..9c829ce 100644
--- a/src/examples/ecore/ecore_con_url_cookies_example.c
+++ b/src/examples/ecore/ecore_con_url_cookies_example.c
@@ -6,12 +6,6 @@
 #include <Ecore.h>
 #include <Ecore_Con.h>
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#else
-# define EINA_UNUSED
-#endif
-
 #define COOKIEJAR "cookies.jar"
 
 static Eina_Bool

-- 


Reply via email to