Expedite: warnings--

SVN revision: 58872
This commit is contained in:
Vincent Torri 2011-04-24 17:14:34 +00:00
parent 9b5b9e48a6
commit 5067f72bcb
22 changed files with 75 additions and 60 deletions

View File

@ -189,6 +189,7 @@ AM_PROG_CC_STDC
AC_HEADER_STDC AC_HEADER_STDC
AC_C_CONST AC_C_CONST
AM_PROG_CC_C_O AM_PROG_CC_C_O
AC_C___ATTRIBUTE__
WIN32_CFLAGS="" WIN32_CFLAGS=""
case "$host_os" in case "$host_os" in

47
m4/ac_attribute.m4 Normal file
View File

@ -0,0 +1,47 @@
dnl Copyright (C) 2004-2008 Kim Woelders
dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
dnl That code is public domain and can be freely used or copied.
dnl Originally snatched from somewhere...
dnl Macro for checking if the compiler supports __attribute__
dnl Usage: AC_C___ATTRIBUTE__
dnl call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__
dnl if the compiler supports __attribute__, HAVE___ATTRIBUTE__ is
dnl defined to 1 and __UNUSED__ is defined to __attribute__((unused))
dnl otherwise, HAVE___ATTRIBUTE__ is not defined and __UNUSED__ is
dnl defined to nothing.
AC_DEFUN([AC_C___ATTRIBUTE__],
[
AC_MSG_CHECKING([for __attribute__])
AC_CACHE_VAL([ac_cv___attribute__],
[AC_TRY_COMPILE(
[
#include <stdlib.h>
int func(int x);
int foo(int x __attribute__ ((unused)))
{
exit(1);
}
],
[],
[ac_cv___attribute__="yes"],
[ac_cv___attribute__="no"]
)])
AC_MSG_RESULT($ac_cv___attribute__)
if test "x${ac_cv___attribute__}" = "xyes" ; then
AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__])
AC_DEFINE([__UNUSED__], [__attribute__((unused))], [Macro declaring a function argument to be unused])
else
AC_DEFINE([__UNUSED__], [], [Macro declaring a function argument to be unused])
fi
])
dnl End of ac_attribute.m4

View File

@ -56,7 +56,7 @@ _cleanup(void)
} }
static void static void
_loop(double t, int f) _loop(double t __UNUSED__, int f __UNUSED__)
{ {
} }

View File

@ -172,7 +172,7 @@ MainWndProc(HWND hwnd,
} }
Eina_Bool Eina_Bool
engine_software_gdi_args(const char *engine, int width, int height) engine_software_gdi_args(const char *engine __UNUSED__, int width, int height)
{ {
WNDCLASS wc; WNDCLASS wc;
RECT rect; RECT rect;
@ -181,7 +181,6 @@ engine_software_gdi_args(const char *engine, int width, int height)
DWORD style; DWORD style;
DWORD exstyle; DWORD exstyle;
int depth; int depth;
int i;
instance = GetModuleHandle(NULL); instance = GetModuleHandle(NULL);
if (!instance) return EINA_FALSE; if (!instance) return EINA_FALSE;

View File

@ -52,7 +52,7 @@ static void _loop(double t, int f)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
unsigned int *data, *p; unsigned int *data, *p;
int ff;
w = 640; w = 640;
h = 480; h = 480;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
@ -63,7 +63,6 @@ static void _loop(double t, int f)
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(o_images[i], 1);
st = evas_object_image_stride_get(o_images[i]) >> 2; st = evas_object_image_stride_get(o_images[i]) >> 2;
p = data; p = data;
ff = (f ^ (f << 8) ^ (f << 16) ^ (f << 24));
for (y = 0; y < h; y++) for (y = 0; y < h; y++)
{ {
for (x = 0; x < w; x++) for (x = 0; x < w; x++)

View File

@ -52,7 +52,7 @@ static void _loop(double t, int f)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
unsigned int *data, *p; unsigned int *data, *p;
int ff, a, r, g, b; int a, r, g, b;
w = 640; w = 640;
h = 480; h = 480;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
@ -63,7 +63,6 @@ static void _loop(double t, int f)
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(o_images[i], 1);
st = evas_object_image_stride_get(o_images[i]) >> 2; st = evas_object_image_stride_get(o_images[i]) >> 2;
p = data; p = data;
ff = (f ^ (f << 8) ^ (f << 16) ^ (f << 24));
for (y = 0; y < h; y++) for (y = 0; y < h; y++)
{ {
for (x = 0; x < w; x++) for (x = 0; x < w; x++)

View File

@ -194,7 +194,7 @@ _ui_all(void)
double fps = 0.0; double fps = 0.0;
double wfps = 0.0; double wfps = 0.0;
int t_count = 0; int t_count = 0;
int i; unsigned int i;
double avgw = 0.0; double avgw = 0.0;
evas_object_hide(o_menu_logo); evas_object_hide(o_menu_logo);
@ -281,7 +281,7 @@ _ui_num(int n)
double wfps = 0.0; double wfps = 0.0;
int t_count = 0; int t_count = 0;
Menu_Item *mi; Menu_Item *mi;
int i; unsigned int i;
double avgw = 0.0; double avgw = 0.0;
evas_object_hide(o_menu_logo); evas_object_hide(o_menu_logo);
@ -359,7 +359,7 @@ _ui_select(void)
} }
static void static void
_ui_key(void *data, Evas *e, Evas_Object *obj, void *event_info) _ui_key(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{ {
Evas_Event_Key_Down *ev; Evas_Event_Key_Down *ev;
@ -380,7 +380,7 @@ _ui_key(void *data, Evas *e, Evas_Object *obj, void *event_info)
if (!strcmp(ev->keyname, "Left")) menu_sel++; if (!strcmp(ev->keyname, "Left")) menu_sel++;
if (!strcmp(ev->keyname, "Right")) menu_sel--; if (!strcmp(ev->keyname, "Right")) menu_sel--;
if (menu_sel < 0) menu_sel = 0; if (menu_sel < 0) menu_sel = 0;
else if (menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1; else if ((unsigned int)menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
menu_anim_sel = menu_sel; menu_anim_sel = menu_sel;
if (!strcmp(ev->keyname, "Return")) _ui_select(); if (!strcmp(ev->keyname, "Return")) _ui_select();
} }
@ -391,7 +391,7 @@ static int down = 0;
static int down_menu_sel = 0; static int down_menu_sel = 0;
static void static void
_ui_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info) _ui_mouse_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{ {
Evas_Event_Mouse_Down *ev; Evas_Event_Mouse_Down *ev;
@ -410,7 +410,7 @@ _ui_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
} }
static void static void
_ui_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info) _ui_mouse_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{ {
Evas_Event_Mouse_Up *ev; Evas_Event_Mouse_Up *ev;
@ -435,7 +435,7 @@ _ui_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
} }
static void static void
_ui_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info) _ui_mouse_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{ {
Evas_Event_Mouse_Move *ev; Evas_Event_Mouse_Move *ev;
@ -446,7 +446,7 @@ _ui_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
menu_sel = down_menu_sel + ((ev->cur.canvas.x - down_x) / 25); menu_sel = down_menu_sel + ((ev->cur.canvas.x - down_x) / 25);
/* scroll */ /* scroll */
if (menu_sel < 0) menu_sel = 0; if (menu_sel < 0) menu_sel = 0;
else if (menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1; else if ((unsigned int)menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
menu_anim_sel = menu_sel; menu_anim_sel = menu_sel;
} }
else else

View File

@ -77,11 +77,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -75,11 +75,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -83,11 +83,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -60,11 +60,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -64,11 +64,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -75,11 +75,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -75,11 +75,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = ICON_SIZE;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x + 8, y); evas_object_move(o_images[i], x + 8, y);

View File

@ -91,11 +91,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -99,11 +99,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -91,11 +91,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -99,11 +99,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -120,11 +120,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -136,11 +136,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -120,11 +120,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);

View File

@ -136,11 +136,9 @@ static void _cleanup(void)
static void _loop(double t, int f) static void _loop(double t, int f)
{ {
int i; int i;
Evas_Coord x, y, w, h, tw, th, cent; Evas_Coord x, y, tw, th, cent;
x = 0; x = 0;
y = 0 - f; y = 0 - f;
w = win_w;
h = ICON_SIZE;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
evas_object_move(o_images[i], x, y); evas_object_move(o_images[i], x, y);