forked from enlightenment/efl
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 <cedric@osg.samsung.com>
This commit is contained in:
parent
56180ee758
commit
59de60e60c
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue