examples: Use EINA_UNUSED in examples to silence a ton of warning
First step to get the examples compiling output in a useful state. With all the warning noise one would never see the important messages. If you add new code please make sure its warning free.
This commit is contained in:
parent
886c8d55b7
commit
4e2e2ea01e
|
@ -13,7 +13,7 @@
|
|||
#include <Ecore_Evas.h>
|
||||
|
||||
static void
|
||||
_mouse_down_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||
_mouse_down_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
static Eina_Bool flag = EINA_FALSE;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ static void new_decoded_pad_cb(GstElement *demuxer,
|
|||
gpointer user_data);
|
||||
|
||||
static void
|
||||
handler(void *data, void *buf, unsigned int len)
|
||||
handler(void *data, void *buf, unsigned int len EINA_UNUSED)
|
||||
{
|
||||
GstBuffer *buffer = *((GstBuffer **)buf);
|
||||
|
||||
|
@ -25,9 +25,9 @@ handler(void *data, void *buf, unsigned int len)
|
|||
}
|
||||
|
||||
static void
|
||||
handoff(GstElement *object,
|
||||
handoff(GstElement *object EINA_UNUSED,
|
||||
GstBuffer *arg0,
|
||||
GstPad *arg1,
|
||||
GstPad *arg1 EINA_UNUSED,
|
||||
gpointer user_data)
|
||||
{
|
||||
Ecore_Pipe *pipe;
|
||||
|
@ -93,7 +93,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
static void
|
||||
new_decoded_pad_cb(GstElement *demuxer,
|
||||
new_decoded_pad_cb(GstElement *demuxer EINA_UNUSED,
|
||||
GstPad *new_pad,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
#include <Eina.h>
|
||||
|
||||
static Eina_Bool
|
||||
_print(const void *container, void *data, void *fdata)
|
||||
_print(const void *container EINA_UNUSED, void *data, void *fdata EINA_UNUSED)
|
||||
{
|
||||
printf("%s\n", (char *)data);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
const char* strings[] = {
|
||||
"helo", "hera", "starbuck", "kat", "boomer",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <Eina.h>
|
||||
|
||||
Eina_Bool keep(void *data, void *gdata)
|
||||
Eina_Bool keep(void *data, void *gdata EINA_UNUSED)
|
||||
{
|
||||
if (strlen((const char*)data) <= 5)
|
||||
return EINA_TRUE;
|
||||
|
@ -14,7 +14,7 @@ Eina_Bool keep(void *data, void *gdata)
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
const char* strs[] = {
|
||||
"one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
#include <Eina.h>
|
||||
|
||||
static void
|
||||
_print_cb(const char *name, const char *path, void *data)
|
||||
_print_cb(const char *name, const char *path, void *data EINA_UNUSED)
|
||||
{
|
||||
printf("file %s in %s\n", name, path);
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Eina_Iterator *it;
|
||||
const char *f_name;
|
||||
|
|
|
@ -45,8 +45,8 @@ _phone_entry_free_cb(void *data)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_phone_book_foreach_cb(const Eina_Hash *phone_book, const void *key,
|
||||
void *data, void *fdata)
|
||||
_phone_book_foreach_cb(const Eina_Hash *phone_book EINA_UNUSED, const void *key,
|
||||
void *data, void *fdata EINA_UNUSED)
|
||||
{
|
||||
Phone_Entry **pe = (Phone_Entry **)key;
|
||||
const char *nick = data;
|
||||
|
@ -57,7 +57,7 @@ _phone_book_foreach_cb(const Eina_Hash *phone_book, const void *key,
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, const char *argv[])
|
||||
main(int argc EINA_UNUSED, const char *argv[] EINA_UNUSED)
|
||||
{
|
||||
Eina_Hash *phone_book = NULL;
|
||||
int i;
|
||||
|
|
|
@ -37,8 +37,8 @@ _phone_entry_free_cb(void *data)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_phone_book_foreach_cb(const Eina_Hash *phone_book, const void *key,
|
||||
void *data, void *fdata)
|
||||
_phone_book_foreach_cb(const Eina_Hash *phone_book EINA_UNUSED, const void *key,
|
||||
void *data, void *fdata EINA_UNUSED)
|
||||
{
|
||||
const char *name = key;
|
||||
const char *number = data;
|
||||
|
@ -49,7 +49,7 @@ _phone_book_foreach_cb(const Eina_Hash *phone_book, const void *key,
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, const char *argv[])
|
||||
main(int argc EINA_UNUSED, const char *argv[] EINA_UNUSED)
|
||||
{
|
||||
Eina_Hash *phone_book = NULL;
|
||||
int i;
|
||||
|
|
|
@ -9,7 +9,7 @@ cmp(const void *a, const void *b)
|
|||
return *(int*)a > *(int*)b;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Eina_Inarray *iarr;
|
||||
char ch, *ch2;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Eina.h>
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
const char* strings[] = {
|
||||
"helo", "hera", "starbuck", "kat", "boomer",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Eina.h>
|
||||
|
||||
static Eina_Bool
|
||||
print_one(const void *container, void *data, void *fdata)
|
||||
print_one(const void *container EINA_UNUSED, void *data, void *fdata EINA_UNUSED)
|
||||
{
|
||||
printf("%s\n", (char*)data);
|
||||
return EINA_TRUE;
|
||||
|
@ -20,7 +20,7 @@ print_eina_container(Eina_Iterator *it)
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
const char *strings[] = {
|
||||
"unintersting string", "husker", "starbuck", "husker"
|
||||
|
|
|
@ -17,7 +17,7 @@ struct _Data
|
|||
};
|
||||
|
||||
void print_cb(const Eina_Log_Domain *domain,
|
||||
Eina_Log_Level level,
|
||||
Eina_Log_Level level EINA_UNUSED,
|
||||
const char *file,
|
||||
const char *fnc,
|
||||
int line,
|
||||
|
|
|
@ -88,7 +88,7 @@ print_pilot(pilot *ptr)
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
person *base;
|
||||
pilot *sub;
|
||||
|
|
|
@ -59,7 +59,7 @@ main(void)
|
|||
|
||||
static Eina_Bool
|
||||
_xml_tag_cb(void *data, Eina_Simple_XML_Type type, const char *content,
|
||||
unsigned offset, unsigned length)
|
||||
unsigned offset EINA_UNUSED, unsigned length)
|
||||
{
|
||||
char buffer[length+1];
|
||||
Eina_Array *array = data;
|
||||
|
@ -119,7 +119,7 @@ _xml_attr_cb(void *data, const char *key, const char *value)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_print(const void *container, void *data, void *fdata)
|
||||
_print(const void *container EINA_UNUSED, void *data, void *fdata EINA_UNUSED)
|
||||
{
|
||||
printf("%s\n", (char *)data);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <stdio.h>
|
||||
#include <Eina.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
char *names = "Calvin;Leoben;D'anna;Simon;Doral;Six;Daniel;Sharon";
|
||||
char *str;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <stdio.h>
|
||||
#include <Eina.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Eina_Strbuf *buf;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <Eina.h>
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
const char *str, *str2;
|
||||
const char *prologe = "The Cylons were created by man. They rebelled. They "
|
||||
|
|
|
@ -12,13 +12,13 @@ _tz_setup(const Eina_Value_Type *type, void *mem)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_tz_flush(const Eina_Value_Type *type, void *mem)
|
||||
_tz_flush(const Eina_Value_Type *type EINA_UNUSED, void *mem EINA_UNUSED)
|
||||
{
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_tz_copy(const Eina_Value_Type *type, const void *src, void * dst)
|
||||
_tz_copy(const Eina_Value_Type *type EINA_UNUSED, const void *src, void * dst)
|
||||
{
|
||||
struct timezone *tzsrc = (struct timezone *)src;
|
||||
struct timezone *tzdst = dst;
|
||||
|
@ -27,7 +27,7 @@ _tz_copy(const Eina_Value_Type *type, const void *src, void * dst)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_tz_compare(const Eina_Value_Type *type, const void *a, const void *b)
|
||||
_tz_compare(const Eina_Value_Type *type EINA_UNUSED, const void *a, const void *b)
|
||||
{
|
||||
struct timezone tza = *(struct timezone*)a;
|
||||
struct timezone tzb = *(struct timezone*)b;
|
||||
|
@ -40,7 +40,7 @@ _tz_compare(const Eina_Value_Type *type, const void *a, const void *b)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_tz_pset(const Eina_Value_Type *type, void *mem, const void *ptr)
|
||||
_tz_pset(const Eina_Value_Type *type EINA_UNUSED, void *mem, const void *ptr)
|
||||
{
|
||||
*(struct timezone*)mem = *(struct timezone*)ptr;
|
||||
return EINA_TRUE;
|
||||
|
@ -61,7 +61,7 @@ _tz_pget(const Eina_Value_Type *type, const void *mem, void *ptr)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_tz_convert_to(const Eina_Value_Type *type, const Eina_Value_Type *convert, const void *type_mem, void *convert_mem)
|
||||
_tz_convert_to(const Eina_Value_Type *type EINA_UNUSED, const Eina_Value_Type *convert, const void *type_mem, void *convert_mem)
|
||||
{
|
||||
struct timezone v = *(struct timezone*)type_mem;
|
||||
|
||||
|
@ -146,7 +146,7 @@ static Eina_Value_Type TZ_TYPE = {
|
|||
_tz_pget
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Eina_Value vtv, vtz;
|
||||
struct timeval tv;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <Ecore.h>
|
||||
|
||||
static Eina_Bool
|
||||
_filter_cb(void *data, Eio_File *handler, const char *file)
|
||||
_filter_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, const char *file)
|
||||
{
|
||||
char *last_slash = strrchr(file, '/');
|
||||
|
||||
|
@ -20,7 +20,7 @@ _filter_cb(void *data, Eio_File *handler, const char *file)
|
|||
}
|
||||
|
||||
static void
|
||||
_main_cb(void *data, Eio_File *handler, const char *file)
|
||||
_main_cb(void *data, Eio_File *handler EINA_UNUSED, const char *file)
|
||||
{
|
||||
int *number_of_listed_files = (int *)data;
|
||||
|
||||
|
@ -30,7 +30,7 @@ _main_cb(void *data, Eio_File *handler, const char *file)
|
|||
}
|
||||
|
||||
static void
|
||||
_done_cb(void *data, Eio_File *handler)
|
||||
_done_cb(void *data, Eio_File *handler EINA_UNUSED)
|
||||
{
|
||||
int *number_of_listed_files = (int *)data;
|
||||
|
||||
|
@ -41,7 +41,7 @@ _done_cb(void *data, Eio_File *handler)
|
|||
}
|
||||
|
||||
static void
|
||||
_error_cb(void *data, Eio_File *handler, int error)
|
||||
_error_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int error)
|
||||
{
|
||||
fprintf(stderr, "Something wrong has happend:%s\n", strerror(error));
|
||||
ecore_main_loop_quit();
|
||||
|
|
Loading…
Reference in New Issue