From 59de60e60c1bd073a1bfc8942fb0a9847dc5fa6d Mon Sep 17 00:00:00 2001 From: Srivardhan Hebbar Date: Tue, 3 Feb 2015 14:30:21 +0100 Subject: [PATCH] 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 --- 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 e122b26cf4..ab669dbb0e 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 #include -#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 c6e9c23bfb..1269b73536 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 #include -#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 8cae748675..3c46ea2965 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 #include -#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 dce99895c8..9c829ce3a9 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 #include -#ifdef HAVE_CONFIG_H -# include "config.h" -#else -# define EINA_UNUSED -#endif - #define COOKIEJAR "cookies.jar" static Eina_Bool