ecore_con: remove code in examples that triggered warnings.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Tue, 3 Feb 2015 13:30:21 +0000 (14:30 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 3 Feb 2015 13:30:27 +0000 (14:30 +0100)
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 <cedric@osg.samsung.com>
src/examples/ecore/ecore_con_client_simple_example.c
src/examples/ecore/ecore_con_server_http_example.c
src/examples/ecore/ecore_con_server_simple_example.c
src/examples/ecore/ecore_con_url_cookies_example.c

index e122b26..ab669db 100644 (file)
@@ -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;
index c6e9c23..1269b73 100644 (file)
@@ -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"
index 8cae748..3c46ea2 100644 (file)
@@ -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;
index dce9989..9c829ce 100644 (file)
@@ -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