merge: __UNUSED__ --> EINA_UNUSED and some fixes in eo.

SVN revision: 77542
This commit is contained in:
Vincent Torri 2012-10-05 20:09:47 +00:00
parent 227ef6982e
commit 7fe3d35994
60 changed files with 428 additions and 419 deletions

View File

@ -197,7 +197,7 @@ AM_CONDITIONAL([HAVE_WINDOWS], [test "x${have_windows}" = "xyes"])
#### Additional options to configure #### Additional options to configure
EFL_ENABLE_LIB([eet], [yes]) EFL_ENABLE_LIB([eet], [yes])
EFL_ENABLE_LIB([eo], [no]) EFL_ENABLE_LIB([eo], [yes])
# Assert or fail. # Assert or fail.
@ -275,7 +275,6 @@ EFL_CHECK_PATH_MAX
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_C_INLINE AC_C_INLINE
EFL_ATTRIBUTE_UNUSED
# EFL_CHECK_COMPILER_FLAGS([MY_LIB], [-Wall -Wextra]) # EFL_CHECK_COMPILER_FLAGS([MY_LIB], [-Wall -Wextra])
@ -1162,7 +1161,10 @@ AC_MSG_NOTICE([Eo checks])
requirements_pc_eo="eina >= 1.7.99" requirements_pc_eo="eina >= 1.7.99"
PKG_CHECK_MODULES([EO], [${requirements_pc_eo}]) AC_ARG_VAR([EO_CFLAGS], [preprocessor flags for Eo])
AC_SUBST([EO_CFLAGS])
AC_ARG_VAR([EO_LIBS], [linker flags for Eo])
AC_SUBST([EO_LIBS])
# Example (evas one) # Example (evas one)

View File

@ -3,30 +3,6 @@ dnl That code is public domain and can be freely used or copied.
dnl Macros for checking if the compiler supports some __attribute__ uses dnl Macros for checking if the compiler supports some __attribute__ uses
dnl Usage: EFL_ATTRIBUTE_UNUSED
dnl call AC_DEFINE for __UNUSED__ if __attribute__((unused)) is available
AC_DEFUN([EFL_ATTRIBUTE_UNUSED],
[
AC_MSG_CHECKING([for __attribute__ ((unused))])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[
void foo(int x __attribute__ ((unused))) {}
]],
[[
]])],
[have_attribute_unused="yes"],
[have_attribute_unused="no"])
AC_MSG_RESULT([${have_attribute_unused}])
if test "x${have_attribute_unused}" = "xyes" ; then
AC_DEFINE([__UNUSED__], [__attribute__ ((unused))], [Macro declaring a function argument to be unused.])
else
AC_DEFINE([__UNUSED__], [], [__attribute__ ((unused)) is not supported.])
fi
])
dnl Usage: EFL_ATTRIBUTE_VECTOR dnl Usage: EFL_ATTRIBUTE_VECTOR
dnl call AC_DEFINE for HAVE_GCC_ATTRIBUTE_VECTOR if __attribute__((vector)) is available dnl call AC_DEFINE for HAVE_GCC_ATTRIBUTE_VECTOR if __attribute__((vector)) is available

View File

@ -47,7 +47,7 @@ struct _Eina_Bench_Object
Eina_Bool keep; Eina_Bool keep;
}; };
static Eina_Bool keep(void *data, __UNUSED__ void *gdata) static Eina_Bool keep(void *data, EINA_UNUSED void *gdata)
{ {
Eina_Bench_Object *bo = data; Eina_Bench_Object *bo = data;
@ -109,16 +109,16 @@ eina_bench_array_4evas_render_inline(int request)
} }
static Eina_Bool static Eina_Bool
eina_iterator_ebo_free(__UNUSED__ const Eina_Array *array, eina_iterator_ebo_free(EINA_UNUSED const Eina_Array *array,
Eina_Bench_Object *ebo, __UNUSED__ void *fdata) Eina_Bench_Object *ebo, EINA_UNUSED void *fdata)
{ {
free(ebo); free(ebo);
return EINA_TRUE; return EINA_TRUE;
} }
static Eina_Bool static Eina_Bool
eina_iterator_ebo_rand(__UNUSED__ const void *container, eina_iterator_ebo_rand(EINA_UNUSED const void *container,
Eina_Bench_Object *ebo, __UNUSED__ void *fdata) Eina_Bench_Object *ebo, EINA_UNUSED void *fdata)
{ {
ebo->keep = rand() < (RAND_MAX / 2) ? ebo->keep : EINA_FALSE; ebo->keep = rand() < (RAND_MAX / 2) ? ebo->keep : EINA_FALSE;
return EINA_TRUE; return EINA_TRUE;
@ -609,7 +609,7 @@ _eina_ecore_for_each_remove(void *value, void *user_data)
} }
static void static void
_eina_ecore_for_each_rand(void *value, __UNUSED__ void *user_data) _eina_ecore_for_each_rand(void *value, EINA_UNUSED void *user_data)
{ {
Eina_Bench_Object *ebo = value; Eina_Bench_Object *ebo = value;

View File

@ -52,8 +52,8 @@ _eina_string_key_length(const char *key)
} }
static int static int
_eina_string_key_cmp(const char *key1, __UNUSED__ int key1_length, _eina_string_key_cmp(const char *key1, EINA_UNUSED int key1_length,
const char *key2, __UNUSED__ int key2_length) const char *key2, EINA_UNUSED int key2_length)
{ {
return strcmp(key1, key2); return strcmp(key1, key2);
} }
@ -71,7 +71,7 @@ struct _Eina_Bench_Rbtree
static Eina_Rbtree_Direction static Eina_Rbtree_Direction
_eina_bench_rbtree_cmp(const Eina_Bench_Rbtree *left, _eina_bench_rbtree_cmp(const Eina_Bench_Rbtree *left,
const Eina_Bench_Rbtree *right, const Eina_Bench_Rbtree *right,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
if (!left) if (!left)
return EINA_RBTREE_RIGHT; return EINA_RBTREE_RIGHT;
@ -87,13 +87,13 @@ static inline int
_eina_bench_rbtree_key(const Eina_Bench_Rbtree *node, _eina_bench_rbtree_key(const Eina_Bench_Rbtree *node,
const char *key, const char *key,
int length, int length,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
return strncmp(node->key, key, length); return strncmp(node->key, key, length);
} }
static void static void
_eina_bench_rbtree_free(Eina_Rbtree *node, __UNUSED__ void *data) _eina_bench_rbtree_free(Eina_Rbtree *node, EINA_UNUSED void *data)
{ {
free(node); free(node);
} }

View File

@ -56,7 +56,7 @@ _evas_mp_pool_free(Pool *p)
} }
void * void *
evas_mempool_malloc(Evas_Mempool *pool, int size __UNUSED__) evas_mempool_malloc(Evas_Mempool *pool, int size EINA_UNUSED)
{ {
#ifdef NOPOOL #ifdef NOPOOL
return malloc(size); return malloc(size);

View File

@ -2,7 +2,9 @@ MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I. \ -I. \
-I$(top_srcdir)/src/lib/eina \
-I$(top_srcdir)/src/lib/eo \ -I$(top_srcdir)/src/lib/eo \
-I$(top_builddir)/src/lib/eina \
-I$(top_builddir)/src/lib/eo \ -I$(top_builddir)/src/lib/eo \
@EFL_EO_BUILD@ \ @EFL_EO_BUILD@ \
@EO_CFLAGS@ @EO_CFLAGS@
@ -30,6 +32,8 @@ eo_isa_LDADD = $(top_builddir)/src/lib/eo/libeo.la @EO_LIBS@
if EO_BUILD_EXAMPLE_EVAS if EO_BUILD_EXAMPLE_EVAS
AM_CPPFLAGS += @ELM_CFLAGS@
eo_evas_SOURCES = \ eo_evas_SOURCES = \
evas/evas_elw_box.c \ evas/evas_elw_box.c \
evas/evas_elw_box.h \ evas/evas_elw_box.h \

View File

@ -5,8 +5,8 @@
#include <Elementary.h> #include <Elementary.h>
#include "Eo.h" #include "Eo.h"
#include "evas_obj.h" #include "evas_evas_obj.h"
#include "elw_box.h" #include "evas_elw_box.h"
EAPI Eo_Op ELW_BOX_BASE_ID = 0; EAPI Eo_Op ELW_BOX_BASE_ID = 0;

View File

@ -5,10 +5,10 @@
#include <Elementary.h> #include <Elementary.h>
#include "Eo.h" #include "Eo.h"
#include "evas_obj.h" #include "evas_evas_obj.h"
#include "elw_box.h" #include "evas_elw_box.h"
#include "elw_button.h" #include "evas_elw_button.h"
#include "elw_boxedbutton.h" #include "evas_elw_boxedbutton.h"
typedef struct typedef struct
{ {

View File

@ -5,8 +5,8 @@
#include <Elementary.h> #include <Elementary.h>
#include "Eo.h" #include "Eo.h"
#include "evas_obj.h" #include "evas_evas_obj.h"
#include "elw_button.h" #include "evas_elw_button.h"
EAPI Eo_Op ELW_BUTTON_BASE_ID = 0; EAPI Eo_Op ELW_BUTTON_BASE_ID = 0;

View File

@ -5,8 +5,8 @@
#include <Elementary.h> #include <Elementary.h>
#include "Eo.h" #include "Eo.h"
#include "evas_obj.h" #include "evas_evas_obj.h"
#include "elw_win.h" #include "evas_elw_win.h"
typedef struct typedef struct
{ {

View File

@ -5,7 +5,7 @@
#include <Elementary.h> #include <Elementary.h>
#include "Eo.h" #include "Eo.h"
#include "evas_obj.h" #include "evas_evas_obj.h"
#define MY_CLASS EXEVAS_OBJ_CLASS #define MY_CLASS EXEVAS_OBJ_CLASS

View File

@ -4,11 +4,11 @@
#include <Elementary.h> #include <Elementary.h>
#include "evas_obj.h" #include "evas_evas_obj.h"
#include "elw_button.h" #include "evas_elw_button.h"
#include "elw_box.h" #include "evas_elw_box.h"
#include "elw_boxedbutton.h" #include "evas_elw_boxedbutton.h"
#include "elw_win.h" #include "evas_elw_win.h"
Eina_Bool Eina_Bool
_btn_clicked_cb(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info) _btn_clicked_cb(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info)

View File

@ -624,7 +624,7 @@ static int _eet_data_words_bigendian = -1;
/* CHAR TYPE */ /* CHAR TYPE */
static int static int
eet_data_get_char(const Eet_Dictionary *ed __UNUSED__, eet_data_get_char(const Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
const void *src_end, const void *src_end,
void *dst) void *dst)
@ -642,7 +642,7 @@ eet_data_get_char(const Eet_Dictionary *ed __UNUSED__,
} }
static void * static void *
eet_data_put_char(Eet_Dictionary *ed __UNUSED__, eet_data_put_char(Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
int *size_ret) int *size_ret)
{ {
@ -661,7 +661,7 @@ eet_data_put_char(Eet_Dictionary *ed __UNUSED__,
/* SHORT TYPE */ /* SHORT TYPE */
static int static int
eet_data_get_short(const Eet_Dictionary *ed __UNUSED__, eet_data_get_short(const Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
const void *src_end, const void *src_end,
void *dst) void *dst)
@ -678,7 +678,7 @@ eet_data_get_short(const Eet_Dictionary *ed __UNUSED__,
} }
static void * static void *
eet_data_put_short(Eet_Dictionary *ed __UNUSED__, eet_data_put_short(Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
int *size_ret) int *size_ret)
{ {
@ -697,7 +697,7 @@ eet_data_put_short(Eet_Dictionary *ed __UNUSED__,
/* INT TYPE */ /* INT TYPE */
static inline int static inline int
eet_data_get_int(const Eet_Dictionary *ed __UNUSED__, eet_data_get_int(const Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
const void *src_end, const void *src_end,
void *dst) void *dst)
@ -714,7 +714,7 @@ eet_data_get_int(const Eet_Dictionary *ed __UNUSED__,
} }
static void * static void *
eet_data_put_int(Eet_Dictionary *ed __UNUSED__, eet_data_put_int(Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
int *size_ret) int *size_ret)
{ {
@ -733,7 +733,7 @@ eet_data_put_int(Eet_Dictionary *ed __UNUSED__,
/* LONG LONG TYPE */ /* LONG LONG TYPE */
static int static int
eet_data_get_long_long(const Eet_Dictionary *ed __UNUSED__, eet_data_get_long_long(const Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
const void *src_end, const void *src_end,
void *dst) void *dst)
@ -750,7 +750,7 @@ eet_data_get_long_long(const Eet_Dictionary *ed __UNUSED__,
} }
static void * static void *
eet_data_put_long_long(Eet_Dictionary *ed __UNUSED__, eet_data_put_long_long(Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
int *size_ret) int *size_ret)
{ {
@ -863,7 +863,7 @@ eet_data_put_string(Eet_Dictionary *ed,
/* ALWAYS INLINED STRING TYPE */ /* ALWAYS INLINED STRING TYPE */
static int static int
eet_data_get_istring(const Eet_Dictionary *ed __UNUSED__, eet_data_get_istring(const Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
const void *src_end, const void *src_end,
void *dst) void *dst)
@ -872,7 +872,7 @@ eet_data_get_istring(const Eet_Dictionary *ed __UNUSED__,
} }
static void * static void *
eet_data_put_istring(Eet_Dictionary *ed __UNUSED__, eet_data_put_istring(Eet_Dictionary *ed EINA_UNUSED,
const void *src, const void *src,
int *size_ret) int *size_ret)
{ {
@ -881,9 +881,9 @@ eet_data_put_istring(Eet_Dictionary *ed __UNUSED__,
/* ALWAYS NULL TYPE */ /* ALWAYS NULL TYPE */
static int static int
eet_data_get_null(const Eet_Dictionary *ed __UNUSED__, eet_data_get_null(const Eet_Dictionary *ed EINA_UNUSED,
const void *src __UNUSED__, const void *src EINA_UNUSED,
const void *src_end __UNUSED__, const void *src_end EINA_UNUSED,
void *dst) void *dst)
{ {
char **d; char **d;
@ -895,8 +895,8 @@ eet_data_get_null(const Eet_Dictionary *ed __UNUSED__,
} }
static void * static void *
eet_data_put_null(Eet_Dictionary *ed __UNUSED__, eet_data_put_null(Eet_Dictionary *ed EINA_UNUSED,
const void *src __UNUSED__, const void *src EINA_UNUSED,
int *size_ret) int *size_ret)
{ {
*size_ret = 0; *size_ret = 0;
@ -1725,7 +1725,7 @@ _eet_str_direct_alloc(const char *str)
} }
static void static void
_eet_str_direct_free(const char *str __UNUSED__) _eet_str_direct_free(const char *str EINA_UNUSED)
{ {
} }
@ -2512,7 +2512,7 @@ _eet_freelist_all_unref(Eet_Free_Context *freelist_context)
} }
static int static int
eet_data_descriptor_encode_hash_cb(void *hash __UNUSED__, eet_data_descriptor_encode_hash_cb(void *hash EINA_UNUSED,
const char *cipher_key, const char *cipher_key,
void *hdata, void *hdata,
void *fdata) void *fdata)
@ -3506,7 +3506,7 @@ eet_data_get_list(Eet_Free_Context *context,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Chunk *echnk, Eet_Data_Chunk *echnk,
int type, int type,
int group_type __UNUSED__, int group_type EINA_UNUSED,
void *data, void *data,
char **p, char **p,
int *size) int *size)
@ -3573,7 +3573,7 @@ eet_data_get_hash(Eet_Free_Context *context,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Chunk *echnk, Eet_Data_Chunk *echnk,
int type, int type,
int group_type __UNUSED__, int group_type EINA_UNUSED,
void *data, void *data,
char **p, char **p,
int *size) int *size)
@ -3817,7 +3817,7 @@ on_error:
static void static void
eet_data_put_union(Eet_Dictionary *ed, eet_data_put_union(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__, Eet_Data_Descriptor *edd EINA_UNUSED,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Stream *ds, Eet_Data_Stream *ds,
void *data_in) void *data_in)
@ -3874,7 +3874,7 @@ eet_data_put_union(Eet_Dictionary *ed,
static int static int
eet_data_get_union(Eet_Free_Context *context, eet_data_get_union(Eet_Free_Context *context,
const Eet_Dictionary *ed, const Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__, Eet_Data_Descriptor *edd EINA_UNUSED,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Chunk *echnk, Eet_Data_Chunk *echnk,
int type, int type,
@ -3971,7 +3971,7 @@ on_error:
static void static void
eet_data_put_variant(Eet_Dictionary *ed, eet_data_put_variant(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__, Eet_Data_Descriptor *edd EINA_UNUSED,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Stream *ds, Eet_Data_Stream *ds,
void *data_in) void *data_in)
@ -4083,11 +4083,11 @@ eet_data_put_variant(Eet_Dictionary *ed,
static int static int
eet_data_get_variant(Eet_Free_Context *context, eet_data_get_variant(Eet_Free_Context *context,
const Eet_Dictionary *ed, const Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__, Eet_Data_Descriptor *edd EINA_UNUSED,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Chunk *echnk, Eet_Data_Chunk *echnk,
int type __UNUSED__, int type EINA_UNUSED,
int group_type __UNUSED__, int group_type EINA_UNUSED,
void *data, void *data,
char **p, char **p,
int *size) int *size)
@ -4279,10 +4279,10 @@ eet_data_get_unknown(Eet_Free_Context *context,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Chunk *echnk, Eet_Data_Chunk *echnk,
int type, int type,
int group_type __UNUSED__, int group_type EINA_UNUSED,
void *data, void *data,
char **p __UNUSED__, char **p EINA_UNUSED,
int *size __UNUSED__) int *size EINA_UNUSED)
{ {
int ret; int ret;
void *data_ret; void *data_ret;
@ -4390,7 +4390,7 @@ eet_data_get_unknown(Eet_Free_Context *context,
static void static void
eet_data_put_array(Eet_Dictionary *ed, eet_data_put_array(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__, Eet_Data_Descriptor *edd EINA_UNUSED,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Stream *ds, Eet_Data_Stream *ds,
void *data_in) void *data_in)
@ -4466,7 +4466,7 @@ eet_data_put_array(Eet_Dictionary *ed,
static void static void
eet_data_put_unknown(Eet_Dictionary *ed, eet_data_put_unknown(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__, Eet_Data_Descriptor *edd EINA_UNUSED,
Eet_Data_Element *ede, Eet_Data_Element *ede,
Eet_Data_Stream *ds, Eet_Data_Stream *ds,
void *data_in) void *data_in)

View File

@ -342,7 +342,7 @@ _JPEGFatalErrorHandler(j_common_ptr cinfo)
} }
static void static void
_JPEGErrorHandler(j_common_ptr cinfo __UNUSED__) _JPEGErrorHandler(j_common_ptr cinfo EINA_UNUSED)
{ {
/* emptr errmgr; */ /* emptr errmgr; */
@ -353,8 +353,8 @@ _JPEGErrorHandler(j_common_ptr cinfo __UNUSED__)
} }
static void static void
_JPEGErrorHandler2(j_common_ptr cinfo __UNUSED__, _JPEGErrorHandler2(j_common_ptr cinfo EINA_UNUSED,
int msg_level __UNUSED__) int msg_level EINA_UNUSED)
{ {
/* emptr errmgr; */ /* emptr errmgr; */

View File

@ -402,21 +402,21 @@ _eina_file_map_close(Eina_File_Map *map)
} }
static unsigned int static unsigned int
_eina_file_map_key_length(const void *key __UNUSED__) _eina_file_map_key_length(const void *key EINA_UNUSED)
{ {
return sizeof (unsigned long int) * 2; return sizeof (unsigned long int) * 2;
} }
static int static int
_eina_file_map_key_cmp(const unsigned long int *key1, int key1_length __UNUSED__, _eina_file_map_key_cmp(const unsigned long int *key1, int key1_length EINA_UNUSED,
const unsigned long int *key2, int key2_length __UNUSED__) const unsigned long int *key2, int key2_length EINA_UNUSED)
{ {
if (key1[0] - key2[0] == 0) return key1[1] - key2[1]; if (key1[0] - key2[0] == 0) return key1[1] - key2[1];
return key1[0] - key2[0]; return key1[0] - key2[0];
} }
static int static int
_eina_file_map_key_hash(const unsigned long int *key, int key_length __UNUSED__) _eina_file_map_key_hash(const unsigned long int *key, int key_length EINA_UNUSED)
{ {
return eina_hash_int64(&key[0], sizeof (unsigned long int)) return eina_hash_int64(&key[0], sizeof (unsigned long int))
^ eina_hash_int64(&key[1], sizeof (unsigned long int)); ^ eina_hash_int64(&key[1], sizeof (unsigned long int));

View File

@ -469,21 +469,21 @@ _eina_file_map_close(Eina_File_Map *map)
} }
static unsigned int static unsigned int
_eina_file_map_key_length(const void *key __UNUSED__) _eina_file_map_key_length(const void *key EINA_UNUSED)
{ {
return sizeof (unsigned long int) * 2; return sizeof (unsigned long int) * 2;
} }
static int static int
_eina_file_map_key_cmp(const unsigned long int *key1, int key1_length __UNUSED__, _eina_file_map_key_cmp(const unsigned long int *key1, int key1_length EINA_UNUSED,
const unsigned long int *key2, int key2_length __UNUSED__) const unsigned long int *key2, int key2_length EINA_UNUSED)
{ {
if (key1[0] - key2[0] == 0) return key1[1] - key2[1]; if (key1[0] - key2[0] == 0) return key1[1] - key2[1];
return key1[0] - key2[0]; return key1[0] - key2[0];
} }
static int static int
_eina_file_map_key_hash(const unsigned long int *key, int key_length __UNUSED__) _eina_file_map_key_hash(const unsigned long int *key, int key_length EINA_UNUSED)
{ {
return eina_hash_int64(&key[0], sizeof (unsigned long int)) return eina_hash_int64(&key[0], sizeof (unsigned long int))
^ eina_hash_int64(&key[1], sizeof (unsigned long int)); ^ eina_hash_int64(&key[1], sizeof (unsigned long int));
@ -1122,18 +1122,18 @@ eina_file_filename_get(Eina_File *file)
return file->filename; return file->filename;
} }
EAPI Eina_Iterator *eina_file_xattr_get(Eina_File *file __UNUSED__) EAPI Eina_Iterator *eina_file_xattr_get(Eina_File *file EINA_UNUSED)
{ {
return NULL; return NULL;
} }
EAPI Eina_Iterator *eina_file_xattr_value_get(Eina_File *file __UNUSED__) EAPI Eina_Iterator *eina_file_xattr_value_get(Eina_File *file EINA_UNUSED)
{ {
return NULL; return NULL;
} }
EAPI void * EAPI void *
eina_file_map_all(Eina_File *file, Eina_File_Populate rule __UNUSED__) eina_file_map_all(Eina_File *file, Eina_File_Populate rule EINA_UNUSED)
{ {
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL); EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
@ -1342,7 +1342,7 @@ eina_file_map_faulted(Eina_File *file, void *map)
} }
EAPI int EAPI int
eina_file_statat(void *container __UNUSED__, Eina_File_Direct_Info *info, Eina_Stat *st) eina_file_statat(void *container EINA_UNUSED, Eina_File_Direct_Info *info, Eina_Stat *st)
{ {
struct __stat64 buf; struct __stat64 buf;

View File

@ -156,8 +156,8 @@ struct _Eina_Hash_Each
static inline int static inline int
_eina_hash_hash_rbtree_cmp_hash(const Eina_Hash_Head *hash_head, _eina_hash_hash_rbtree_cmp_hash(const Eina_Hash_Head *hash_head,
const int *hash, const int *hash,
__UNUSED__ int key_length, EINA_UNUSED int key_length,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
return hash_head->hash - *hash; return hash_head->hash - *hash;
} }
@ -165,7 +165,7 @@ _eina_hash_hash_rbtree_cmp_hash(const Eina_Hash_Head *hash_head,
static Eina_Rbtree_Direction static Eina_Rbtree_Direction
_eina_hash_hash_rbtree_cmp_node(const Eina_Hash_Head *left, _eina_hash_hash_rbtree_cmp_node(const Eina_Hash_Head *left,
const Eina_Hash_Head *right, const Eina_Hash_Head *right,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
if (left->hash - right->hash < 0) if (left->hash - right->hash < 0)
return EINA_RBTREE_LEFT; return EINA_RBTREE_LEFT;
@ -176,7 +176,7 @@ _eina_hash_hash_rbtree_cmp_node(const Eina_Hash_Head *left,
static inline int static inline int
_eina_hash_key_rbtree_cmp_key_data(const Eina_Hash_Element *hash_element, _eina_hash_key_rbtree_cmp_key_data(const Eina_Hash_Element *hash_element,
const Eina_Hash_Tuple *tuple, const Eina_Hash_Tuple *tuple,
__UNUSED__ unsigned int key_length, EINA_UNUSED unsigned int key_length,
Eina_Key_Cmp cmp) Eina_Key_Cmp cmp)
{ {
int result; int result;
@ -307,7 +307,7 @@ on_error:
} }
static Eina_Bool static Eina_Bool
_eina_hash_rbtree_each(__UNUSED__ const Eina_Rbtree *container, _eina_hash_rbtree_each(EINA_UNUSED const Eina_Rbtree *container,
const Eina_Hash_Head *hash_head, const Eina_Hash_Head *hash_head,
Eina_Hash_Each *data) Eina_Hash_Each *data)
{ {
@ -507,41 +507,41 @@ _eina_string_key_length(const char *key)
} }
static int static int
_eina_string_key_cmp(const char *key1, __UNUSED__ int key1_length, _eina_string_key_cmp(const char *key1, EINA_UNUSED int key1_length,
const char *key2, __UNUSED__ int key2_length) const char *key2, EINA_UNUSED int key2_length)
{ {
return strcmp(key1, key2); return strcmp(key1, key2);
} }
static int static int
_eina_stringshared_key_cmp(const char *key1, __UNUSED__ int key1_length, _eina_stringshared_key_cmp(const char *key1, EINA_UNUSED int key1_length,
const char *key2, __UNUSED__ int key2_length) const char *key2, EINA_UNUSED int key2_length)
{ {
return key1 - key2; return key1 - key2;
} }
static unsigned int static unsigned int
_eina_int32_key_length(__UNUSED__ const uint32_t *key) _eina_int32_key_length(EINA_UNUSED const uint32_t *key)
{ {
return 4; return 4;
} }
static int static int
_eina_int32_key_cmp(const uint32_t *key1, __UNUSED__ int key1_length, _eina_int32_key_cmp(const uint32_t *key1, EINA_UNUSED int key1_length,
const uint32_t *key2, __UNUSED__ int key2_length) const uint32_t *key2, EINA_UNUSED int key2_length)
{ {
return *key1 - *key2; return *key1 - *key2;
} }
static unsigned int static unsigned int
_eina_int64_key_length(__UNUSED__ const uint32_t *key) _eina_int64_key_length(EINA_UNUSED const uint32_t *key)
{ {
return 8; return 8;
} }
static int static int
_eina_int64_key_cmp(const uint64_t *key1, __UNUSED__ int key1_length, _eina_int64_key_cmp(const uint64_t *key1, EINA_UNUSED int key1_length,
const uint64_t *key2, __UNUSED__ int key2_length) const uint64_t *key2, EINA_UNUSED int key2_length)
{ {
return *key1 - *key2; return *key1 - *key2;
} }

View File

@ -168,7 +168,7 @@ static int _eina_list_log_dom = -1;
#define DBG(...) EINA_LOG_DOM_DBG(_eina_list_log_dom, __VA_ARGS__) #define DBG(...) EINA_LOG_DOM_DBG(_eina_list_log_dom, __VA_ARGS__)
static inline Eina_List_Accounting * static inline Eina_List_Accounting *
_eina_list_mempool_accounting_new(__UNUSED__ Eina_List *list) _eina_list_mempool_accounting_new(EINA_UNUSED Eina_List *list)
{ {
Eina_List_Accounting *tmp; Eina_List_Accounting *tmp;
@ -192,7 +192,7 @@ _eina_list_mempool_accounting_free(Eina_List_Accounting *accounting)
} }
static inline Eina_List * static inline Eina_List *
_eina_list_mempool_list_new(__UNUSED__ Eina_List *list) _eina_list_mempool_list_new(EINA_UNUSED Eina_List *list)
{ {
Eina_List *tmp; Eina_List *tmp;

View File

@ -467,9 +467,9 @@ static void
eina_log_print_prefix_NOthreads_NOcolor_NOfile_func(FILE *fp, eina_log_print_prefix_NOthreads_NOcolor_NOfile_func(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file __UNUSED__, const char *file EINA_UNUSED,
const char *fnc, const char *fnc,
int line __UNUSED__) int line EINA_UNUSED)
{ {
DECLARE_LEVEL_NAME(level); DECLARE_LEVEL_NAME(level);
fprintf(fp, "%s<%u>:%s %s() ", name, eina_log_pid_get(), d->domain_str, fprintf(fp, "%s<%u>:%s %s() ", name, eina_log_pid_get(), d->domain_str,
@ -481,7 +481,7 @@ eina_log_print_prefix_NOthreads_NOcolor_file_NOfunc(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file, const char *file,
const char *fnc __UNUSED__, const char *fnc EINA_UNUSED,
int line) int line)
{ {
DECLARE_LEVEL_NAME(level); DECLARE_LEVEL_NAME(level);
@ -535,9 +535,9 @@ static void
eina_log_print_prefix_NOthreads_color_NOfile_func(FILE *fp, eina_log_print_prefix_NOthreads_color_NOfile_func(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file __UNUSED__, const char *file EINA_UNUSED,
const char *fnc, const char *fnc,
int line __UNUSED__) int line EINA_UNUSED)
{ {
DECLARE_LEVEL_NAME_COLOR(level); DECLARE_LEVEL_NAME_COLOR(level);
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
@ -574,7 +574,7 @@ eina_log_print_prefix_NOthreads_color_file_NOfunc(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file, const char *file,
const char *fnc __UNUSED__, const char *fnc EINA_UNUSED,
int line) int line)
{ {
DECLARE_LEVEL_NAME_COLOR(level); DECLARE_LEVEL_NAME_COLOR(level);
@ -630,9 +630,9 @@ static void
eina_log_print_prefix_threads_NOcolor_NOfile_func(FILE *fp, eina_log_print_prefix_threads_NOcolor_NOfile_func(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file __UNUSED__, const char *file EINA_UNUSED,
const char *fnc, const char *fnc,
int line __UNUSED__) int line EINA_UNUSED)
{ {
Thread cur; Thread cur;
@ -654,7 +654,7 @@ eina_log_print_prefix_threads_NOcolor_file_NOfunc(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file, const char *file,
const char *fnc __UNUSED__, const char *fnc EINA_UNUSED,
int line) int line)
{ {
Thread cur; Thread cur;
@ -752,9 +752,9 @@ static void
eina_log_print_prefix_threads_color_NOfile_func(FILE *fp, eina_log_print_prefix_threads_color_NOfile_func(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file __UNUSED__, const char *file EINA_UNUSED,
const char *fnc, const char *fnc,
int line __UNUSED__) int line EINA_UNUSED)
{ {
Thread cur; Thread cur;
@ -822,7 +822,7 @@ eina_log_print_prefix_threads_color_file_NOfunc(FILE *fp,
const Eina_Log_Domain *d, const Eina_Log_Domain *d,
Eina_Log_Level level, Eina_Log_Level level,
const char *file, const char *file,
const char *fnc __UNUSED__, const char *fnc EINA_UNUSED,
int line) int line)
{ {
Thread cur; Thread cur;
@ -1887,7 +1887,7 @@ eina_log_print_cb_stderr(const Eina_Log_Domain *d,
const char *fnc, const char *fnc,
int line, int line,
const char *fmt, const char *fmt,
__UNUSED__ void *data, EINA_UNUSED void *data,
va_list args) va_list args)
{ {
#ifdef EINA_ENABLE_LOG #ifdef EINA_ENABLE_LOG
@ -1914,7 +1914,7 @@ eina_log_print_cb_stdout(const Eina_Log_Domain *d,
const char *fnc, const char *fnc,
int line, int line,
const char *fmt, const char *fmt,
__UNUSED__ void *data, EINA_UNUSED void *data,
va_list args) va_list args)
{ {
#ifdef EINA_ENABLE_LOG #ifdef EINA_ENABLE_LOG
@ -1936,7 +1936,7 @@ eina_log_print_cb_stdout(const Eina_Log_Domain *d,
EAPI void EAPI void
eina_log_print_cb_file(const Eina_Log_Domain *d, eina_log_print_cb_file(const Eina_Log_Domain *d,
__UNUSED__ Eina_Log_Level level, EINA_UNUSED Eina_Log_Level level,
const char *file, const char *file,
const char *fnc, const char *fnc,
int line, int line,

View File

@ -76,9 +76,9 @@ static long _eina_mmap_pagesize = -1;
#define DBG(...) EINA_LOG_DOM_DBG(_eina_mmap_log_dom, __VA_ARGS__) #define DBG(...) EINA_LOG_DOM_DBG(_eina_mmap_log_dom, __VA_ARGS__)
static void static void
_eina_mmap_safe_sigbus(int sig __UNUSED__, _eina_mmap_safe_sigbus(int sig EINA_UNUSED,
siginfo_t *siginfo, siginfo_t *siginfo,
void *ptr __UNUSED__) void *ptr EINA_UNUSED)
{ {
unsigned char *addr = (unsigned char *)(siginfo->si_addr); unsigned char *addr = (unsigned char *)(siginfo->si_addr);
int perrno; int perrno;

View File

@ -2465,7 +2465,7 @@ _eina_model_interface_properties_hash_constructor(Eina_Model *model)
} }
static Eina_Bool static Eina_Bool
_eina_model_interface_properties_hash_destructor_foreach(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__, void *data, void *fdata __UNUSED__) _eina_model_interface_properties_hash_destructor_foreach(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNUSED, void *data, void *fdata EINA_UNUSED)
{ {
eina_value_free(data); eina_value_free(data);
return EINA_TRUE; return EINA_TRUE;
@ -2551,7 +2551,7 @@ _eina_model_interface_properties_hash_del(Eina_Model *model, const char *name)
} }
static Eina_Bool static Eina_Bool
_eina_model_interface_properties_hash_names_list_foreach(const Eina_Hash *hash __UNUSED__, const void *key, void *data __UNUSED__, void *fdata) _eina_model_interface_properties_hash_names_list_foreach(const Eina_Hash *hash EINA_UNUSED, const void *key, void *data EINA_UNUSED, void *fdata)
{ {
Eina_List **p_list = fdata; Eina_List **p_list = fdata;
*p_list = eina_list_append(*p_list, eina_stringshare_add(key)); *p_list = eina_list_append(*p_list, eina_stringshare_add(key));
@ -2686,7 +2686,7 @@ _eina_model_interface_properties_struct_set(Eina_Model *model, const char *name,
} }
static Eina_Bool static Eina_Bool
_eina_model_interface_properties_struct_del(Eina_Model *model __UNUSED__, const char *name __UNUSED__) _eina_model_interface_properties_struct_del(Eina_Model *model EINA_UNUSED, const char *name EINA_UNUSED)
{ {
return EINA_FALSE; /* not allowed */ return EINA_FALSE; /* not allowed */
} }
@ -4888,7 +4888,7 @@ eina_model_type_subclass_check(const Eina_Model_Type *type, const Eina_Model_Typ
} }
static inline const Eina_Model_Interface * static inline const Eina_Model_Interface *
_eina_model_type_interface_get(const Eina_Model_Type *type, const char *name, Eina_Bool ptr_cmp __UNUSED__) _eina_model_type_interface_get(const Eina_Model_Type *type, const char *name, Eina_Bool ptr_cmp EINA_UNUSED)
{ {
const Eina_Model_Interface **itr; const Eina_Model_Interface **itr;

View File

@ -176,7 +176,7 @@ static unsigned int _eina_object_item_size = 0;
static int static int
_eina_rbtree_cmp_range(const Eina_Rbtree *node, const void *key, _eina_rbtree_cmp_range(const Eina_Rbtree *node, const void *key,
__UNUSED__ int length, __UNUSED__ void *data) EINA_UNUSED int length, EINA_UNUSED void *data)
{ {
Eina_Class_Range *range; Eina_Class_Range *range;
Eina_Object_ID id; Eina_Object_ID id;
@ -192,7 +192,7 @@ _eina_rbtree_cmp_range(const Eina_Rbtree *node, const void *key,
static Eina_Rbtree_Direction static Eina_Rbtree_Direction
_eina_class_direction_range(const Eina_Rbtree *left, _eina_class_direction_range(const Eina_Rbtree *left,
const Eina_Rbtree *right, const Eina_Rbtree *right,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
Eina_Class_Range *rl; Eina_Class_Range *rl;
Eina_Class_Range *rr; Eina_Class_Range *rr;

View File

@ -305,31 +305,31 @@ _eina_share_common_population_head_del(Eina_Share *share,
#else /* EINA_SHARE_COMMON_USAGE undefined */ #else /* EINA_SHARE_COMMON_USAGE undefined */
static void _eina_share_common_population_init(__UNUSED__ Eina_Share *share) { static void _eina_share_common_population_init(EINA_UNUSED Eina_Share *share) {
} }
static void _eina_share_common_population_shutdown(__UNUSED__ Eina_Share *share) static void _eina_share_common_population_shutdown(EINA_UNUSED Eina_Share *share)
{ {
} }
static void _eina_share_common_population_stats(__UNUSED__ Eina_Share *share) { static void _eina_share_common_population_stats(EINA_UNUSED Eina_Share *share) {
} }
void eina_share_common_population_add(__UNUSED__ Eina_Share *share, void eina_share_common_population_add(EINA_UNUSED Eina_Share *share,
__UNUSED__ int slen) { EINA_UNUSED int slen) {
} }
void eina_share_common_population_del(__UNUSED__ Eina_Share *share, void eina_share_common_population_del(EINA_UNUSED Eina_Share *share,
__UNUSED__ int slen) { EINA_UNUSED int slen) {
} }
static void _eina_share_common_population_head_init( static void _eina_share_common_population_head_init(
__UNUSED__ Eina_Share *share, EINA_UNUSED Eina_Share *share,
__UNUSED__ Eina_Share_Common_Head *head) { EINA_UNUSED Eina_Share_Common_Head *head) {
} }
static void _eina_share_common_population_head_add( static void _eina_share_common_population_head_add(
__UNUSED__ Eina_Share *share, EINA_UNUSED Eina_Share *share,
__UNUSED__ EINA_UNUSED
Eina_Share_Common_Head *head) { Eina_Share_Common_Head *head) {
} }
static void _eina_share_common_population_head_del( static void _eina_share_common_population_head_del(
__UNUSED__ Eina_Share *share, EINA_UNUSED Eina_Share *share,
__UNUSED__ EINA_UNUSED
Eina_Share_Common_Head *head) { Eina_Share_Common_Head *head) {
} }
#endif #endif
@ -337,8 +337,8 @@ static void _eina_share_common_population_head_del(
static int static int
_eina_share_common_cmp(const Eina_Share_Common_Head *ed, _eina_share_common_cmp(const Eina_Share_Common_Head *ed,
const int *hash, const int *hash,
__UNUSED__ int length, EINA_UNUSED int length,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(ed, , 0); EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(ed, , 0);
@ -348,7 +348,7 @@ _eina_share_common_cmp(const Eina_Share_Common_Head *ed,
static Eina_Rbtree_Direction static Eina_Rbtree_Direction
_eina_share_common_node(const Eina_Share_Common_Head *left, _eina_share_common_node(const Eina_Share_Common_Head *left,
const Eina_Share_Common_Head *right, const Eina_Share_Common_Head *right,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(left, , 0); EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(left, , 0);
EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(right, , 0); EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(right, , 0);
@ -360,7 +360,7 @@ _eina_share_common_node(const Eina_Share_Common_Head *left,
} }
static void static void
_eina_share_common_head_free(Eina_Share_Common_Head *ed, __UNUSED__ void *data) _eina_share_common_head_free(Eina_Share_Common_Head *ed, EINA_UNUSED void *data)
{ {
EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(ed, ); EINA_MAGIC_CHECK_SHARE_COMMON_HEAD(ed, );
@ -546,7 +546,7 @@ _eina_share_common_node_from_str(const char *str, Eina_Magic node_magic)
} }
static Eina_Bool static Eina_Bool
eina_iterator_array_check(const Eina_Rbtree *rbtree __UNUSED__, eina_iterator_array_check(const Eina_Rbtree *rbtree EINA_UNUSED,
Eina_Share_Common_Head *head, Eina_Share_Common_Head *head,
struct dumpinfo *fdata) struct dumpinfo *fdata)
{ {
@ -867,7 +867,7 @@ on_error:
} }
int int
eina_share_common_length(__UNUSED__ Eina_Share *share, const char *str) eina_share_common_length(EINA_UNUSED Eina_Share *share, const char *str)
{ {
const Eina_Share_Common_Node *node; const Eina_Share_Common_Node *node;

View File

@ -514,9 +514,9 @@ eina_str_convert(const char *enc_from, const char *enc_to, const char *text)
} }
#else #else
EAPI char * EAPI char *
eina_str_convert(const char *enc_from __UNUSED__, eina_str_convert(const char *enc_from EINA_UNUSED,
const char *enc_to __UNUSED__, const char *enc_to EINA_UNUSED,
const char *text __UNUSED__) const char *text EINA_UNUSED)
{ {
return NULL; return NULL;
} }

View File

@ -109,7 +109,7 @@ _eina_strbuf_common_init(size_t csize, Eina_Strbuf *buf)
* @return #EINA_TRUE on success, #EINA_FALSE on failure. * @return #EINA_TRUE on success, #EINA_FALSE on failure.
*/ */
static Eina_Bool static Eina_Bool
_eina_strbuf_common_manage_init(size_t csize __UNUSED__, _eina_strbuf_common_manage_init(size_t csize EINA_UNUSED,
Eina_Strbuf *buf, Eina_Strbuf *buf,
void *str, void *str,
size_t len) size_t len)

View File

@ -997,8 +997,8 @@ static inline void _splitter_del(Eina_Tiler *t)
} }
static inline void _splitter_tile_size_set(Eina_Tiler *t, static inline void _splitter_tile_size_set(Eina_Tiler *t,
int w __UNUSED__, int w EINA_UNUSED,
int h __UNUSED__) int h EINA_UNUSED)
{ {
/* TODO are w and h used for something? */ /* TODO are w and h used for something? */
t->splitter.rects = list_zeroed; t->splitter.rects = list_zeroed;

View File

@ -164,10 +164,11 @@
# define EINA_SENTINEL # define EINA_SENTINEL
# endif # endif
#elif defined(_WIN32) #elif defined(_MSC_VER)
# define EINA_UNUSED
# define EINA_WARN_UNUSED_RESULT # define EINA_WARN_UNUSED_RESULT
# define EINA_ARG_NONNULL(...) # define EINA_ARG_NONNULL(...)
# if defined(_MSC_VER) && _MSC_VER >= 1300 # if _MSC_VER >= 1300
# define EINA_DEPRECATED __declspec(deprecated) # define EINA_DEPRECATED __declspec(deprecated)
# else # else
# define EINA_DEPRECATED # define EINA_DEPRECATED
@ -184,6 +185,7 @@
# define EINA_SENTINEL # define EINA_SENTINEL
#elif defined(__SUNPRO_C) #elif defined(__SUNPRO_C)
# define EINA_UNUSED
# define EINA_WARN_UNUSED_RESULT # define EINA_WARN_UNUSED_RESULT
# define EINA_ARG_NONNULL(...) # define EINA_ARG_NONNULL(...)
# define EINA_DEPRECATED # define EINA_DEPRECATED
@ -207,7 +209,13 @@
# define EINA_LIKELY(exp) exp # define EINA_LIKELY(exp) exp
# define EINA_SENTINEL # define EINA_SENTINEL
#else /* ! __GNUC__ && ! _WIN32 && ! __SUNPRO_C */ #else /* ! __GNUC__ && ! _MSC_VER && ! __SUNPRO_C */
/**
* @def EINA_UNUSED
* Used to warn when an argument of the function is not used.
*/
# define EINA_UNUSED
/** /**
* @def EINA_WARN_UNUSED_RESULT * @def EINA_WARN_UNUSED_RESULT

File diff suppressed because it is too large Load Diff

View File

@ -140,7 +140,7 @@ _eina_xattr_ls_iterator_next(Eina_Xattr_Iterator *it, void **data)
} }
static void * static void *
_eina_xattr_ls_iterator_container(Eina_Xattr_Iterator *it __UNUSED__) _eina_xattr_ls_iterator_container(Eina_Xattr_Iterator *it EINA_UNUSED)
{ {
return NULL; return NULL;
} }

View File

@ -8,6 +8,12 @@ AM_CPPFLAGS = \
@EFL_EO_BUILD@ \ @EFL_EO_BUILD@ \
@EO_CFLAGS@ @EO_CFLAGS@
if HAVE_WINDOWS
AM_CPPFLAGS += \
-I$(top_srcdir)/src/lib/evil \
-I$(top_builddir)/src/lib/evil
endif
installed_headerdir = $(includedir)/eo-@VMAJ@ installed_headerdir = $(includedir)/eo-@VMAJ@
dist_installed_header_DATA = Eo.h dist_installed_header_DATA = Eo.h

View File

@ -21,6 +21,7 @@
#endif #endif
#include "Evil.h" #include "Evil.h"
#include "evil_private.h"
#include "dlfcn.h" #include "dlfcn.h"
@ -57,7 +58,7 @@ get_last_error(char *desc)
} }
void * void *
dlopen(const char* path, int mode __UNUSED__) dlopen(const char* path, int mode EVIL_UNUSED)
{ {
HMODULE module = NULL; HMODULE module = NULL;
@ -190,7 +191,7 @@ dlsym(void *handle, const char *symbol)
} }
int int
dladdr (const void *addr __UNUSED__, Dl_info *info) dladdr (const void *addr EVIL_UNUSED, Dl_info *info)
{ {
TCHAR tpath[PATH_MAX]; TCHAR tpath[PATH_MAX];
MEMORY_BASIC_INFORMATION mbi; MEMORY_BASIC_INFORMATION mbi;

View File

@ -24,6 +24,7 @@
#include "evil_private.h" #include "evil_private.h"
#define APICHAR char #define APICHAR char
#include "evil_print.h" #include "evil_print.h"
#include "evil_private.h"
#ifdef __MINGW32CE__ #ifdef __MINGW32CE__
# define _get_osfhandle(FILEDES) ((long)FILEDES) # define _get_osfhandle(FILEDES) ((long)FILEDES)
@ -34,7 +35,7 @@
void * void *
mmap(void *addr __UNUSED__, mmap(void *addr EVIL_UNUSED,
size_t len, size_t len,
int prot, int prot,
int flags, int flags,
@ -189,7 +190,7 @@ mmap(void *addr __UNUSED__,
int int
munmap(void *addr, munmap(void *addr,
size_t len __UNUSED__) size_t len EVIL_UNUSED)
{ {
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
OSVERSIONINFO os_version; OSVERSIONINFO os_version;

View File

@ -6,6 +6,14 @@
extern "C" { extern "C" {
#endif #endif
#ifdef __GNUC__
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define EVIL_UNUSED __attribute__ ((__unused__))
# else
# define EVIL_UNUSED
# endif
#endif
long _evil_systemtime_to_time(SYSTEMTIME st); long _evil_systemtime_to_time(SYSTEMTIME st);
void _evil_error_display(const char *fct, LONG res); void _evil_error_display(const char *fct, LONG res);

View File

@ -15,7 +15,7 @@
* *
*/ */
void evil_perror (const char *s __UNUSED__) void evil_perror (const char *s EVIL_UNUSED)
{ {
fprintf(stderr, "[Windows CE] error\n"); fprintf(stderr, "[Windows CE] error\n");
} }

View File

@ -3,6 +3,7 @@
#endif /* HAVE_CONFIG_H */ #endif /* HAVE_CONFIG_H */
#include "Evil.h" #include "Evil.h"
#include "evil_private.h"
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
@ -12,7 +13,7 @@
* *
*/ */
char *strerror (int errnum __UNUSED__) char *strerror (int errnum EVIL_UNUSED)
{ {
return "[Windows CE] error\n"; return "[Windows CE] error\n";
} }

View File

@ -68,7 +68,7 @@ evil_time_get(void)
#ifdef _MSC_VER #ifdef _MSC_VER
int int
evil_gettimeofday(struct timeval *tp, void *tzp __UNUSED__) evil_gettimeofday(struct timeval *tp, void *tzp EVIL_UNUSED)
{ {
LARGE_INTEGER count; LARGE_INTEGER count;
LONGLONG diff; LONGLONG diff;
@ -423,7 +423,7 @@ evil_pipe(int *fds)
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
int execvp (const char *file __UNUSED__, char *const argv[] __UNUSED__) int execvp (const char *file EVIL_UNUSED, char *const argv[] EVIL_UNUSED)
{ {
return 1; return 1;
} }

View File

@ -80,8 +80,8 @@ static inline void *_get_offset(Buddy *b, Block *block)
return ret; return ret;
} }
static void *_init(__UNUSED__ const char *context, static void *_init(EINA_UNUSED const char *context,
__UNUSED__ const char *options, EINA_UNUSED const char *options,
va_list args) va_list args)
{ {
Buddy *b; Buddy *b;

View File

@ -100,7 +100,7 @@ struct _Chained_Pool
}; };
static inline Eina_Rbtree_Direction static inline Eina_Rbtree_Direction
_eina_chained_mp_pool_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, __UNUSED__ void *data) _eina_chained_mp_pool_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, EINA_UNUSED void *data)
{ {
if (left < right) return EINA_RBTREE_LEFT; if (left < right) return EINA_RBTREE_LEFT;
return EINA_RBTREE_RIGHT; return EINA_RBTREE_RIGHT;
@ -108,7 +108,7 @@ _eina_chained_mp_pool_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, __U
static inline int static inline int
_eina_chained_mp_pool_key_cmp(const Eina_Rbtree *node, const void *key, _eina_chained_mp_pool_key_cmp(const Eina_Rbtree *node, const void *key,
__UNUSED__ int length, __UNUSED__ void *data) EINA_UNUSED int length, EINA_UNUSED void *data)
{ {
const Chained_Pool *r = EINA_RBTREE_CONTAINER_GET(node, const Chained_Pool); const Chained_Pool *r = EINA_RBTREE_CONTAINER_GET(node, const Chained_Pool);
@ -256,7 +256,7 @@ _eina_chained_mempool_free_in(Chained_Mempool *pool, Chained_Pool *p, void *ptr)
} }
static void * static void *
eina_chained_mempool_malloc(void *data, __UNUSED__ unsigned int size) eina_chained_mempool_malloc(void *data, EINA_UNUSED unsigned int size)
{ {
Chained_Mempool *pool = data; Chained_Mempool *pool = data;
Chained_Pool *p = NULL; Chained_Pool *p = NULL;
@ -434,16 +434,16 @@ eina_chained_mempool_repack(void *data,
} }
static void * static void *
eina_chained_mempool_realloc(__UNUSED__ void *data, eina_chained_mempool_realloc(EINA_UNUSED void *data,
__UNUSED__ void *element, EINA_UNUSED void *element,
__UNUSED__ unsigned int size) EINA_UNUSED unsigned int size)
{ {
return NULL; return NULL;
} }
static void * static void *
eina_chained_mempool_init(const char *context, eina_chained_mempool_init(const char *context,
__UNUSED__ const char *option, EINA_UNUSED const char *option,
va_list args) va_list args)
{ {
Chained_Mempool *mp; Chained_Mempool *mp;

View File

@ -39,7 +39,7 @@ struct _Eina_Ememoa_Fixed_Mempool
}; };
static void * static void *
eina_ememoa_fixed_malloc(void *data, __UNUSED__ unsigned int size) eina_ememoa_fixed_malloc(void *data, EINA_UNUSED unsigned int size)
{ {
Eina_Ememoa_Fixed_Mempool *efm = data; Eina_Ememoa_Fixed_Mempool *efm = data;
@ -55,9 +55,9 @@ eina_ememoa_fixed_free(void *data, void *ptr)
} }
static void * static void *
eina_ememoa_fixed_realloc(__UNUSED__ void *data, eina_ememoa_fixed_realloc(EINA_UNUSED void *data,
__UNUSED__ void *element, EINA_UNUSED void *element,
__UNUSED__ unsigned int size) EINA_UNUSED unsigned int size)
{ {
return NULL; return NULL;
} }
@ -81,7 +81,7 @@ eina_ememoa_fixed_statistics(void *data)
static void * static void *
eina_ememoa_fixed_init(const char *context, eina_ememoa_fixed_init(const char *context,
__UNUSED__ const char *option, EINA_UNUSED const char *option,
va_list args) va_list args)
{ {
struct ememoa_mempool_desc_s *desc = NULL; struct ememoa_mempool_desc_s *desc = NULL;

View File

@ -80,7 +80,7 @@ eina_ememoa_unknown_size_statistics(void *data)
static void * static void *
eina_ememoa_unknown_size_init(const char *context, eina_ememoa_unknown_size_init(const char *context,
__UNUSED__ const char *option, EINA_UNUSED const char *option,
va_list args) va_list args)
{ {
struct ememoa_mempool_desc_s *desc = NULL; struct ememoa_mempool_desc_s *desc = NULL;

View File

@ -70,7 +70,7 @@ _eina_rbtree_inlist_delta(void)
static Eina_Rbtree_Direction static Eina_Rbtree_Direction
_eina_fixed_cmp(const Eina_Rbtree *left, _eina_fixed_cmp(const Eina_Rbtree *left,
const Eina_Rbtree *right, const Eina_Rbtree *right,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
if (left - right < 0) if (left - right < 0)
return EINA_RBTREE_LEFT; return EINA_RBTREE_LEFT;
@ -81,7 +81,7 @@ _eina_fixed_cmp(const Eina_Rbtree *left,
static int static int
_eina_fixed_cmp_key(const Eina_Rbtree *node, _eina_fixed_cmp_key(const Eina_Rbtree *node,
const void *key, const void *key,
__UNUSED__ int length, EINA_UNUSED int length,
Eina_Fixed_Bitmap *mp) Eina_Fixed_Bitmap *mp)
{ {
const void *a = node; const void *a = node;
@ -103,13 +103,13 @@ _eina_fixed_cmp_key(const Eina_Rbtree *node,
static void static void
_eina_fixed_bitmap_pool_free(Eina_Fixed_Bitmap_Pool *pool, _eina_fixed_bitmap_pool_free(Eina_Fixed_Bitmap_Pool *pool,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
free(pool); free(pool);
} }
static void * static void *
eina_fixed_bitmap_malloc(void *data, __UNUSED__ unsigned int size) eina_fixed_bitmap_malloc(void *data, EINA_UNUSED unsigned int size)
{ {
Eina_Fixed_Bitmap *mp = data; Eina_Fixed_Bitmap *mp = data;
Eina_Fixed_Bitmap_Pool *pool = NULL; Eina_Fixed_Bitmap_Pool *pool = NULL;
@ -200,16 +200,16 @@ eina_fixed_bitmap_free(void *data, void *ptr)
} }
static void * static void *
eina_fixed_bitmap_realloc(__UNUSED__ void *data, eina_fixed_bitmap_realloc(EINA_UNUSED void *data,
__UNUSED__ void *element, EINA_UNUSED void *element,
__UNUSED__ unsigned int size) EINA_UNUSED unsigned int size)
{ {
return NULL; return NULL;
} }
static void * static void *
eina_fixed_bitmap_init(__UNUSED__ const char *context, eina_fixed_bitmap_init(EINA_UNUSED const char *context,
__UNUSED__ const char *option, EINA_UNUSED const char *option,
va_list args) va_list args)
{ {
Eina_Fixed_Bitmap *mp; Eina_Fixed_Bitmap *mp;

View File

@ -83,7 +83,7 @@ struct _One_Big
}; };
static void * static void *
eina_one_big_malloc(void *data, __UNUSED__ unsigned int size) eina_one_big_malloc(void *data, EINA_UNUSED unsigned int size)
{ {
One_Big *pool = data; One_Big *pool = data;
unsigned char *mem = NULL; unsigned char *mem = NULL;
@ -198,16 +198,16 @@ eina_one_big_free(void *data, void *ptr)
} }
static void * static void *
eina_one_big_realloc(__UNUSED__ void *data, eina_one_big_realloc(EINA_UNUSED void *data,
__UNUSED__ void *element, EINA_UNUSED void *element,
__UNUSED__ unsigned int size) EINA_UNUSED unsigned int size)
{ {
return NULL; return NULL;
} }
static void * static void *
eina_one_big_init(const char *context, eina_one_big_init(const char *context,
__UNUSED__ const char *option, EINA_UNUSED const char *option,
va_list args) va_list args)
{ {
One_Big *pool; One_Big *pool;

View File

@ -28,33 +28,33 @@
#include "eina_private.h" #include "eina_private.h"
static void * static void *
eina_pass_through_malloc(__UNUSED__ void *data, unsigned int size) eina_pass_through_malloc(EINA_UNUSED void *data, unsigned int size)
{ {
return malloc(size); return malloc(size);
} }
static void static void
eina_pass_through_free(__UNUSED__ void *data, void *ptr) eina_pass_through_free(EINA_UNUSED void *data, void *ptr)
{ {
free(ptr); free(ptr);
} }
static void * static void *
eina_pass_through_realloc(__UNUSED__ void *data, void *ptr, unsigned int size) eina_pass_through_realloc(EINA_UNUSED void *data, void *ptr, unsigned int size)
{ {
return realloc(ptr, size); return realloc(ptr, size);
} }
static void * static void *
eina_pass_through_init(__UNUSED__ const char *context, eina_pass_through_init(EINA_UNUSED const char *context,
__UNUSED__ const char *option, EINA_UNUSED const char *option,
__UNUSED__ va_list args) EINA_UNUSED va_list args)
{ {
return (void *)0x1; return (void *)0x1;
} }
static void static void
eina_pass_through_shutdown(__UNUSED__ void *data) eina_pass_through_shutdown(EINA_UNUSED void *data)
{ {
} }

View File

@ -679,7 +679,7 @@ _eet_test_ex_check(Eet_Test_Ex_Type *stuff,
} /* _eet_test_ex_check */ } /* _eet_test_ex_check */
static Eina_Bool static Eina_Bool
func(__UNUSED__ const Eina_Hash *hash, func(EINA_UNUSED const Eina_Hash *hash,
const void *key, const void *key,
void *data, void *data,
void *fdata) void *fdata)
@ -697,8 +697,8 @@ func(__UNUSED__ const Eina_Hash *hash,
} /* func */ } /* func */
static Eina_Bool static Eina_Bool
func7(__UNUSED__ const Eina_Hash *hash, func7(EINA_UNUSED const Eina_Hash *hash,
__UNUSED__ const void *key, EINA_UNUSED const void *key,
void *data, void *data,
void *fdata) void *fdata)
{ {
@ -1743,8 +1743,8 @@ END_TEST
static int static int
pass_get(char *pass, pass_get(char *pass,
int size, int size,
__UNUSED__ int rwflags, EINA_UNUSED int rwflags,
__UNUSED__ void *u) EINA_UNUSED void *u)
{ {
memset(pass, 0, size); memset(pass, 0, size);
@ -1758,8 +1758,8 @@ pass_get(char *pass,
static int static int
badpass_get(char *pass, badpass_get(char *pass,
int size, int size,
__UNUSED__ int rwflags, EINA_UNUSED int rwflags,
__UNUSED__ void *u) EINA_UNUSED void *u)
{ {
memset(pass, 0, size); memset(pass, 0, size);

View File

@ -26,7 +26,7 @@
#include "Eina.h" #include "Eina.h"
static Eina_Bool static Eina_Bool
eina_accessor_check(__UNUSED__ const Eina_Array *array, eina_accessor_check(EINA_UNUSED const Eina_Array *array,
int *data, int *fdata) int *data, int *fdata)
{ {
fail_if(*fdata > *data); fail_if(*fdata > *data);
@ -97,7 +97,7 @@ _eina_test_inlist_build(int i)
} }
static Eina_Bool static Eina_Bool
eina_accessor_inlist_data_check(__UNUSED__ const Eina_Inlist *in_list, eina_accessor_inlist_data_check(EINA_UNUSED const Eina_Inlist *in_list,
Eina_Test_Inlist *data, Eina_Test_Inlist *data,
int *fdata) int *fdata)
{ {
@ -167,7 +167,7 @@ START_TEST(eina_accessor_inlist_simple)
END_TEST END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_list_data_check(__UNUSED__ const Eina_List *list, eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
int *data, int *data,
int *fdata) int *fdata)
{ {

View File

@ -38,7 +38,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;

View File

@ -43,7 +43,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;

View File

@ -39,7 +39,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;

View File

@ -28,10 +28,10 @@
#include "Eina.h" #include "Eina.h"
static Eina_Bool static Eina_Bool
eina_foreach_check(__UNUSED__ const Eina_Hash *hash, eina_foreach_check(EINA_UNUSED const Eina_Hash *hash,
const void *key, const void *key,
void *data, void *data,
__UNUSED__ void *fdata) EINA_UNUSED void *fdata)
{ {
int *j = data; int *j = data;
int i; int i;

View File

@ -289,7 +289,7 @@ START_TEST(eina_inarray_test_reverse)
END_TEST END_TEST
static Eina_Bool static Eina_Bool
array_foreach(const void *array __UNUSED__, void *p, void *user_data __UNUSED__) array_foreach(const void *array EINA_UNUSED, void *p, void *user_data EINA_UNUSED)
{ {
short *member = p; short *member = p;
int *i = user_data; int *i = user_data;
@ -299,7 +299,7 @@ array_foreach(const void *array __UNUSED__, void *p, void *user_data __UNUSED__)
} }
static Eina_Bool static Eina_Bool
array_foreach_stop_2nd(const void *array __UNUSED__, void *p, void *user_data __UNUSED__) array_foreach_stop_2nd(const void *array EINA_UNUSED, void *p, void *user_data EINA_UNUSED)
{ {
short *member = p; short *member = p;
int *i = user_data; int *i = user_data;

View File

@ -45,7 +45,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;

View File

@ -26,7 +26,7 @@
#include "Eina.h" #include "Eina.h"
static Eina_Bool static Eina_Bool
eina_iterator_array_check(__UNUSED__ const Eina_Array *array, eina_iterator_array_check(EINA_UNUSED const Eina_Array *array,
int *data, int *fdata) int *data, int *fdata)
{ {
fail_if(*fdata > *data); fail_if(*fdata > *data);
@ -77,7 +77,7 @@ END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_hash_key_check(const Eina_Hash *hash, eina_iterator_hash_key_check(const Eina_Hash *hash,
const char *key, const char *key,
__UNUSED__ void *fdata) EINA_UNUSED void *fdata)
{ {
fail_if(eina_hash_find(hash, key) == NULL); fail_if(eina_hash_find(hash, key) == NULL);
@ -86,7 +86,7 @@ eina_iterator_hash_key_check(const Eina_Hash *hash,
static Eina_Bool static Eina_Bool
eina_iterator_hash_data_check(const Eina_Hash *hash, eina_iterator_hash_data_check(const Eina_Hash *hash,
int *data, int *data,
__UNUSED__ void *fdata) EINA_UNUSED void *fdata)
{ {
char tmp[10]; char tmp[10];
@ -96,9 +96,9 @@ eina_iterator_hash_data_check(const Eina_Hash *hash,
return EINA_TRUE; return EINA_TRUE;
} }
static Eina_Bool static Eina_Bool
eina_iterator_hash_tuple_check(__UNUSED__ const Eina_Hash *hash, eina_iterator_hash_tuple_check(EINA_UNUSED const Eina_Hash *hash,
Eina_Hash_Tuple *tuple, Eina_Hash_Tuple *tuple,
__UNUSED__ void *fdata) EINA_UNUSED void *fdata)
{ {
fail_if(atoi((char *)tuple->key) != *((int *)tuple->data)); fail_if(atoi((char *)tuple->key) != *((int *)tuple->data));
@ -160,7 +160,7 @@ _eina_test_inlist_build(int i)
} }
static Eina_Bool static Eina_Bool
eina_iterator_inlist_data_check(__UNUSED__ const Eina_Inlist *in_list, eina_iterator_inlist_data_check(EINA_UNUSED const Eina_Inlist *in_list,
Eina_Test_Inlist *data, Eina_Test_Inlist *data,
int *fdata) int *fdata)
{ {
@ -223,7 +223,7 @@ START_TEST(eina_iterator_inlist_simple)
END_TEST END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_list_data_check(__UNUSED__ const Eina_List *list, eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
int *data, int *data,
int *fdata) int *fdata)
{ {
@ -320,7 +320,7 @@ _eina_rbtree_int_new(int value)
} }
static Eina_Bool static Eina_Bool
eina_iterator_rbtree_data_check_sorted(__UNUSED__ const Eina_List *list, eina_iterator_rbtree_data_check_sorted(EINA_UNUSED const Eina_List *list,
Eina_Rbtree_Int *data, Eina_Rbtree_Int *data,
int *fdata) int *fdata)
{ {
@ -343,7 +343,7 @@ eina_iterator_rbtree_data_check_sorted(__UNUSED__ const Eina_List *list,
} }
static Eina_Bool static Eina_Bool
eina_iterator_rbtree_data_check_prefix(__UNUSED__ const Eina_List *list, eina_iterator_rbtree_data_check_prefix(EINA_UNUSED const Eina_List *list,
Eina_Rbtree_Int *data, Eina_Rbtree_Int *data,
int *fdata) int *fdata)
{ {
@ -366,7 +366,7 @@ eina_iterator_rbtree_data_check_prefix(__UNUSED__ const Eina_List *list,
} }
static Eina_Bool static Eina_Bool
eina_iterator_rbtree_data_check_postfix(__UNUSED__ const Eina_List *list, eina_iterator_rbtree_data_check_postfix(EINA_UNUSED const Eina_List *list,
Eina_Rbtree_Int *data, Eina_Rbtree_Int *data,
int *fdata) int *fdata)
{ {

View File

@ -40,7 +40,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_log(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_log(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
ck_assert_int_eq(ctx->level, level); ck_assert_int_eq(ctx->level, level);
@ -57,7 +57,7 @@ _eina_test_log(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file,
} }
static void static void
_eina_test_log_domain(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_log_domain(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
ck_assert_int_eq(ctx->level, level); ck_assert_int_eq(ctx->level, level);
@ -73,7 +73,7 @@ _eina_test_log_domain(const Eina_Log_Domain *d, Eina_Log_Level level, const char
} }
static void static void
_eina_test_log_safety(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_log_safety(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;

View File

@ -50,7 +50,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;
@ -76,7 +76,7 @@ _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const
} }
static void static void
_eina_test_magic_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_magic_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;

View File

@ -10,8 +10,8 @@
#define MAX_ROWS 10 #define MAX_ROWS 10
#define MAX_COLS 10 #define MAX_COLS 10
static void eina_matrixsparse_free_cell_cb(void *user_data __UNUSED__, static void eina_matrixsparse_free_cell_cb(void *user_data EINA_UNUSED,
void *cell_data __UNUSED__) void *cell_data EINA_UNUSED)
{ {
} }
@ -35,8 +35,8 @@ static void matrixsparse_initialize(Eina_Matrixsparse *matrix,
static void matrixsparse_check(Eina_Matrixsparse *matrix, static void matrixsparse_check(Eina_Matrixsparse *matrix,
long data[MAX_ROWS][MAX_COLS], long data[MAX_ROWS][MAX_COLS],
unsigned long nrows __UNUSED__, unsigned long nrows EINA_UNUSED,
unsigned long ncols __UNUSED__) unsigned long ncols EINA_UNUSED)
{ {
unsigned long i, j; unsigned long i, j;
long *test1; long *test1;

View File

@ -25,7 +25,7 @@
#include "eina_suite.h" #include "eina_suite.h"
#include "Eina.h" #include "Eina.h"
static Eina_Bool list_cb(Eina_Module *m, void *data __UNUSED__) static Eina_Bool list_cb(Eina_Module *m, void *data EINA_UNUSED)
{ {
int *sym; int *sym;
const char *file; const char *file;

View File

@ -87,7 +87,7 @@ struct _Eina_Rbtree_Int
static Eina_Rbtree_Direction static Eina_Rbtree_Direction
eina_rbtree_int_cmp(const Eina_Rbtree_Int *left, eina_rbtree_int_cmp(const Eina_Rbtree_Int *left,
const Eina_Rbtree_Int *right, const Eina_Rbtree_Int *right,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
fail_if(!left); fail_if(!left);
fail_if(!right); fail_if(!right);
@ -101,8 +101,8 @@ eina_rbtree_int_cmp(const Eina_Rbtree_Int *left,
static int static int
eina_rbtree_int_key(const Eina_Rbtree_Int *node, eina_rbtree_int_key(const Eina_Rbtree_Int *node,
const int *key, const int *key,
__UNUSED__ int length, EINA_UNUSED int length,
__UNUSED__ void *data) EINA_UNUSED void *data)
{ {
fail_if(!node); fail_if(!node);
return node->value - *key; return node->value - *key;

View File

@ -37,7 +37,7 @@
*/ */
static void * static void *
_thread_run(void *arg __UNUSED__) _thread_run(void *arg EINA_UNUSED)
{ {
int niceval = getpriority(PRIO_PROCESS, 0); int niceval = getpriority(PRIO_PROCESS, 0);
int niceval2; int niceval2;

View File

@ -39,7 +39,7 @@ struct log_ctx {
//#define SHOW_LOG 1 //#define SHOW_LOG 1
static void static void
_eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args __UNUSED__) _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args EINA_UNUSED)
{ {
struct log_ctx *ctx = data; struct log_ctx *ctx = data;
va_list cp_args; va_list cp_args;

View File

@ -1,7 +1,9 @@
MAINTAINERCLEANFILES = Makefile.in MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/eina \
-I$(top_srcdir)/src/lib/eo \ -I$(top_srcdir)/src/lib/eo \
-I$(top_builddir)/src/lib/eina \
-I$(top_builddir)/src/lib/eo \ -I$(top_builddir)/src/lib/eo \
@EFL_EO_BUILD@ \ @EFL_EO_BUILD@ \
@EO_CFLAGS@ \ @EO_CFLAGS@ \